Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
export const ICacheItem = t.iface([], {
"key": "string",
"value": "any",
"size": "number",
"tag": t.opt("string"),
});
export const ILRUCache = t.iface([], {
"capacity": "number",
"set": t.func("boolean", t.param("item", "ICacheItem"), t.param("overwrite", "boolean", true)),
"get": t.func("ICacheItem", t.param("key", "string")),
});
export const MyType = t.union("boolean", "number", "ILRUCache");
export const NumberAlias = t.name("number");
export const NumberAlias2 = t.name("NumberAlias");
export const SomeEnum = t.enumtype({
"Foo": 0,
"Bar": 1,
});
export const Direction = t.enumtype({
"Up": 1,
"Down": 2,
"Left": 17,
"Right": 18,
});
export const DirectionStr = t.enumtype({
"value": "any",
"size": "number",
"tag": t.opt("string"),
});
export const ILRUCache = t.iface([], {
"capacity": "number",
"set": t.func("boolean", t.param("item", "ICacheItem"), t.param("overwrite", "boolean", true)),
"get": t.func("ICacheItem", t.param("key", "string")),
});
export const MyType = t.union("boolean", "number", "ILRUCache");
export const NumberAlias = t.name("number");
export const NumberAlias2 = t.name("NumberAlias");
export const SomeEnum = t.enumtype({
"Foo": 0,
"Bar": 1,
});
export const Direction = t.enumtype({
"Up": 1,
"Down": 2,
"Left": 17,
"Right": 18,
});
export const DirectionStr = t.enumtype({
"Up": "UP",
"Down": "DOWN",