typeforce
Version:
Another biased type checking solution for Javascript
2,929 lines • 456 kB
JSON
{
"valid": [
{
"type": "Array",
"value": []
},
{
"type": "Array",
"value": [
0
]
},
{
"type": "Array",
"value": [
"foobar"
]
},
{
"type": "Array",
"value": [
{
"a": 0
}
]
},
{
"type": "Array",
"value": [
null
]
},
{
"type": "Boolean",
"value": false
},
{
"type": "Boolean",
"value": true
},
{
"type": "Buffer",
"valueId": "Buffer"
},
{
"type": "Buffer",
"valueId": "Buffer3"
},
{
"type": "Buffer",
"valueId": "Buffer10"
},
{
"type": "Function",
"valueId": "function"
},
{
"type": "Null"
},
{
"type": "Null",
"value": null
},
{
"type": "Number",
"value": 0
},
{
"type": "Number",
"value": 1
},
{
"type": "Object",
"value": []
},
{
"type": "Object",
"value": [
0
]
},
{
"type": "Object",
"value": [
"foobar"
]
},
{
"type": "Object",
"value": [
{
"a": 0
}
]
},
{
"type": "Object",
"value": [
null
]
},
{
"type": "Object",
"value": null
},
{
"type": "Object",
"value": {}
},
{
"type": "Object",
"value": {
"a": null
}
},
{
"type": "Object",
"value": {
"a": 0
}
},
{
"type": "Object",
"value": {
"a": 0,
"b": 0
}
},
{
"type": "Object",
"value": {
"b": 0
}
},
{
"type": "Object",
"value": {
"a": {
"b": 0
}
}
},
{
"type": "Object",
"value": {
"a": {
"b": null
}
}
},
{
"type": "Object",
"value": {
"a": {
"b": {
"c": 0
}
}
}
},
{
"type": "Object",
"value": {
"a": {
"b": {
"c": null
}
}
}
},
{
"type": "Object",
"value": {
"a": {
"b": {
"c": 0,
"d": 0
}
}
}
},
{
"type": "Object",
"value": {
"a": "foo",
"b": "bar"
}
},
{
"type": "Object",
"value": {
"a": "foo",
"b": {
"c": "bar"
}
}
},
{
"type": "Object",
"valueId": "emptyType"
},
{
"type": "Object",
"valueId": "customType"
},
{
"type": "Object",
"valueId": "{ a: undefined }"
},
{
"type": "Object",
"valueId": "{ a: Buffer3 }"
},
{
"type": "Object",
"valueId": "{ a: Buffer10 }"
},
{
"type": "Object",
"valueId": "{ a: { b: Buffer3 } }"
},
{
"type": "Object",
"valueId": "{ a: { b: Buffer10 } }"
},
{
"type": "Object",
"valueId": "Buffer"
},
{
"type": "Object",
"valueId": "Buffer3"
},
{
"type": "Object",
"valueId": "Buffer10"
},
{
"type": "String",
"value": ""
},
{
"type": "String",
"value": "foobar"
},
{
"type": "?Number",
"value": 0
},
{
"type": "?Number",
"value": 1
},
{
"type": "?Number"
},
{
"type": "?Number",
"value": null
},
{
"type": [
"?Number"
],
"value": []
},
{
"type": [
"?Number"
],
"value": [
0
]
},
{
"type": [
"?Number"
],
"value": [
null
]
},
{
"type": [
"Number"
],
"value": []
},
{
"type": [
"Number"
],
"value": [
0
]
},
{
"type": [
{
"a": "Number"
}
],
"value": []
},
{
"type": [
{
"a": "Number"
}
],
"value": [
{
"a": 0
}
]
},
{
"type": {},
"value": []
},
{
"type": {},
"value": [
0
]
},
{
"type": {},
"value": [
"foobar"
]
},
{
"type": {},
"value": [
{
"a": 0
}
]
},
{
"type": {},
"value": [
null
]
},
{
"type": {},
"value": {}
},
{
"type": {},
"value": {
"a": null
}
},
{
"type": {},
"value": {
"a": 0
}
},
{
"type": {},
"value": {
"a": 0,
"b": 0
}
},
{
"type": {},
"value": {
"b": 0
}
},
{
"type": {},
"value": {
"a": {
"b": 0
}
}
},
{
"type": {},
"value": {
"a": {
"b": null
}
}
},
{
"type": {},
"value": {
"a": {
"b": {
"c": 0
}
}
}
},
{
"type": {},
"value": {
"a": {
"b": {
"c": null
}
}
}
},
{
"type": {},
"value": {
"a": {
"b": {
"c": 0,
"d": 0
}
}
}
},
{
"type": {},
"value": {
"a": "foo",
"b": "bar"
}
},
{
"type": {},
"value": {
"a": "foo",
"b": {
"c": "bar"
}
}
},
{
"type": {},
"valueId": "emptyType"
},
{
"type": {},
"valueId": "customType"
},
{
"type": {},
"valueId": "{ a: undefined }"
},
{
"type": {},
"valueId": "{ a: Buffer3 }"
},
{
"type": {},
"valueId": "{ a: Buffer10 }"
},
{
"type": {},
"valueId": "{ a: { b: Buffer3 } }"
},
{
"type": {},
"valueId": "{ a: { b: Buffer10 } }"
},
{
"type": {},
"valueId": "Buffer"
},
{
"type": {},
"valueId": "Buffer3"
},
{
"type": {},
"valueId": "Buffer10"
},
{
"type": {
"a": "Number"
},
"value": {
"a": 0
}
},
{
"type": {
"a": "Number"
},
"value": {
"a": 0,
"b": 0
}
},
{
"type": {
"a": {
"b": "Number"
}
},
"value": {
"a": {
"b": 0
}
}
},
{
"type": {
"a": {
"b": {
"c": "?Number"
}
}
},
"value": {
"a": {
"b": {
"c": 0
}
}
}
},
{
"type": {
"a": {
"b": {
"c": "?Number"
}
}
},
"value": {
"a": {
"b": {
"c": null
}
}
}
},
{
"type": {
"a": {
"b": {
"c": "?Number"
}
}
},
"value": {
"a": {
"b": {
"c": 0,
"d": 0
}
}
}
},
{
"type": {
"a": {
"b": {
"c": "?Number"
}
}
},
"valueId": "{ a: { b: Buffer3 } }"
},
{
"type": {
"a": {
"b": {
"c": "?Number"
}
}
},
"valueId": "{ a: { b: Buffer10 } }"
},
{
"type": {
"a": {
"b": {
"c": "Number"
}
}
},
"value": {
"a": {
"b": {
"c": 0
}
}
}
},
{
"type": {
"a": {
"b": {
"c": "Number"
}
}
},
"value": {
"a": {
"b": {
"c": 0,
"d": 0
}
}
}
},
{
"type": {
"a": null
},
"value": {
"a": null
}
},
{},
{
"type": null,
"value": null
},
{
"type": true,
"value": true
},
{
"type": false,
"value": false
},
{
"type": 0,
"value": 0
},
{
"typeId": "(Number|String)",
"value": "foobar"
},
{
"typeId": "(Number|String)",
"value": [
0
]
},
{
"typeId": "(Number|String)",
"value": [
"foobar"
]
},
{
"typeId": "(Number|String)",
"valueId": "Buffer3"
},
{
"typeId": "(Number|String)",
"valueId": "Buffer10"
},
{
"typeId": "(Number)",
"value": [
0
]
},
{
"typeId": "(Number)",
"valueId": "Buffer3"
},
{
"typeId": "(Number)",
"valueId": "Buffer10"
},
{
"typeId": "[?{ a: Number }]",
"value": []
},
{
"typeId": "[?{ a: Number }]",
"value": [
{
"a": 0
}
]
},
{
"typeId": "[?{ a: Number }]",
"value": [
null
]
},
{
"typeId": "Boolean|Number|String",
"value": ""
},
{
"typeId": "Boolean|Number|String",
"value": "foobar"
},
{
"typeId": "Boolean|Number|String",
"value": 0
},
{
"typeId": "Boolean|Number|String",
"value": 1
},
{
"typeId": "Boolean|Number|String",
"value": false
},
{
"typeId": "Boolean|Number|String",
"value": true
},
{
"typeId": "?Boolean|Number",
"value": 0
},
{
"typeId": "?Boolean|Number",
"value": 1
},
{
"typeId": "?Boolean|Number",
"value": false
},
{
"typeId": "?Boolean|Number",
"value": true
},
{
"typeId": "?Boolean|Number"
},
{
"typeId": "?Boolean|Number",
"value": null
},
{
"typeId": "?{ a: ?Number }",
"value": []
},
{
"typeId": "?{ a: ?Number }",
"value": [
0
]
},
{
"typeId": "?{ a: ?Number }",
"value": [
"foobar"
]
},
{
"typeId": "?{ a: ?Number }",
"value": [
{
"a": 0
}
]
},
{
"typeId": "?{ a: ?Number }",
"value": [
null
]
},
{
"typeId": "?{ a: ?Number }"
},
{
"typeId": "?{ a: ?Number }",
"value": null
},
{
"typeId": "?{ a: ?Number }",
"value": {}
},
{
"typeId": "?{ a: ?Number }",
"value": {
"a": null
}
},
{
"typeId": "?{ a: ?Number }",
"value": {
"a": 0
}
},
{
"typeId": "?{ a: ?Number }",
"value": {
"a": 0,
"b": 0
}
},
{
"typeId": "?{ a: ?Number }",
"value": {
"b": 0
}
},
{
"typeId": "?{ a: ?Number }",
"valueId": "emptyType"
},
{
"typeId": "?{ a: ?Number }",
"valueId": "customType"
},
{
"typeId": "?{ a: ?Number }",
"valueId": "{ a: undefined }"
},
{
"typeId": "?{ a: ?Number }",
"valueId": "Buffer"
},
{
"typeId": "?{ a: ?Number }",
"valueId": "Buffer3"
},
{
"typeId": "?{ a: ?Number }",
"valueId": "Buffer10"
},
{
"typeId": "?{ a: Number }"
},
{
"typeId": "?{ a: Number }",
"value": null
},
{
"typeId": "?{ a: Number }",
"value": {
"a": 0
}
},
{
"typeId": "?{ a: Number }",
"value": {
"a": 0,
"b": 0
}
},
{
"typeId": "{ a: Number|Null }",
"value": []
},
{
"typeId": "{ a: Number|Null }",
"value": [
0
]
},
{
"typeId": "{ a: Number|Null }",
"value": [
"foobar"
]
},
{
"typeId": "{ a: Number|Null }",
"value": [
{
"a": 0
}
]
},
{
"typeId": "{ a: Number|Null }",
"value": [
null
]
},
{
"typeId": "{ a: Number|Null }",
"value": {}
},
{
"typeId": "{ a: Number|Null }",
"value": {
"a": null
}
},
{
"typeId": "{ a: Number|Null }",
"value": {
"a": 0
}
},
{
"typeId": "{ a: Number|Null }",
"value": {
"a": 0,
"b": 0
}
},
{
"typeId": "{ a: Number|Null }",
"value": {
"b": 0
}
},
{
"typeId": "{ a: Number|Null }",
"valueId": "emptyType"
},
{
"typeId": "{ a: Number|Null }",
"valueId": "customType"
},
{
"typeId": "{ a: Number|Null }",
"valueId": "{ a: undefined }"
},
{
"typeId": "{ a: Number|Null }",
"valueId": "Buffer"
},
{
"typeId": "{ a: Number|Null }",
"valueId": "Buffer3"
},
{
"typeId": "{ a: Number|Null }",
"valueId": "Buffer10"
},
{
"typeId": "{ a: Number|{ b: Number } }",
"value": {
"a": 0
}
},
{
"typeId": "{ a: Number|{ b: Number } }",
"value": {
"a": 0,
"b": 0
}
},
{
"typeId": "{ a: Number|{ b: Number } }",
"value": {
"a": {
"b": 0
}
}
},
{
"typeId": "{ a: ?{ b: Number } }",
"value": []
},
{
"typeId": "{ a: ?{ b: Number } }",
"value": [
0
]
},
{
"typeId": "{ a: ?{ b: Number } }",
"value": [
"foobar"
]
},
{
"typeId": "{ a: ?{ b: Number } }",
"value": [
{
"a": 0
}
]
},
{
"typeId": "{ a: ?{ b: Number } }",
"value": [
null
]
},
{
"typeId": "{ a: ?{ b: Number } }",
"value": {}
},
{
"typeId": "{ a: ?{ b: Number } }",
"value": {
"a": null
}
},
{
"typeId": "{ a: ?{ b: Number } }",
"value": {
"b": 0
}
},
{
"typeId": "{ a: ?{ b: Number } }",
"value": {
"a": {
"b": 0
}
}
},
{
"typeId": "{ a: ?{ b: Number } }",
"valueId": "emptyType"
},
{
"typeId": "{ a: ?{ b: Number } }",
"valueId": "customType"
},
{
"typeId": "{ a: ?{ b: Number } }",
"valueId": "{ a: undefined }"
},
{
"typeId": "{ a: ?{ b: Number } }",
"valueId": "Buffer"
},
{
"typeId": "{ a: ?{ b: Number } }",
"valueId": "Buffer3"
},
{
"typeId": "{ a: ?{ b: Number } }",
"valueId": "Buffer10"
},
{
"typeId": "{ a: ?{ b: ?{ c: Number } } }",
"value": []
},
{
"typeId": "{ a: ?{ b: ?{ c: Number } } }",
"value": [
0
]
},
{
"typeId": "{ a: ?{ b: ?{ c: Number } } }",
"value": [
"foobar"
]
},
{
"typeId": "{ a: ?{ b: ?{ c: Number } } }",
"value": [
{
"a": 0
}
]
},
{
"typeId": "{ a: ?{ b: ?{ c: Number } } }",
"value": [
null
]
},
{
"typeId": "{ a: ?{ b: ?{ c: Number } } }",
"value": {}
},
{
"typeId": "{ a: ?{ b: ?{ c: Number } } }",
"value": {
"a": null
}
},
{
"typeId": "{ a: ?{ b: ?{ c: Number } } }",
"value": {
"b": 0
}
},
{
"typeId": "{ a: ?{ b: ?{ c: Number } } }",
"value": {
"a": {
"b": null
}
}
},
{
"typeId": "{ a: ?{ b: ?{ c: Number } } }",
"value": {
"a": {
"b": {
"c": 0
}
}
}
},
{
"typeId": "{ a: ?{ b: ?{ c: Number } } }",
"value": {
"a": {
"b": {
"c": 0,
"d": 0
}
}
}
},
{
"typeId": "{ a: ?{ b: ?{ c: Number } } }",
"valueId": "emptyType"
},
{
"typeId": "{ a: ?{ b: ?{ c: Number } } }",
"valueId": "customType"
},
{
"typeId": "{ a: ?{ b: ?{ c: Number } } }",
"valueId": "{ a: undefined }"
},
{
"typeId": "{ a: ?{ b: ?{ c: Number } } }",
"valueId": "{ a: Buffer3 }"
},
{
"typeId": "{ a: ?{ b: ?{ c: Number } } }",
"valueId": "{ a: Buffer10 }"
},
{
"typeId": "{ a: ?{ b: ?{ c: Number } } }",
"valueId": "Buffer"
},
{
"typeId": "{ a: ?{ b: ?{ c: Number } } }",
"valueId": "Buffer3"
},
{
"typeId": "{ a: ?{ b: ?{ c: Number } } }",
"valueId": "Buffer10"
},
{
"typeId": "{ a: undefined }",
"value": []
},
{
"typeId": "{ a: undefined }",
"value": [
0
]
},
{
"typeId": "{ a: undefined }",
"value": [
"foobar"
]
},
{
"typeId": "{ a: undefined }",
"value": [
{
"a": 0
}
]
},
{
"typeId": "{ a: undefined }",
"value": [
null
]
},
{
"typeId": "{ a: undefined }",
"value": {}
},
{
"typeId": "{ a: undefined }",
"value": {
"b": 0
}
},
{
"typeId": "{ a: undefined }",
"valueId": "emptyType"
},
{
"typeId": "{ a: undefined }",
"valueId": "customType"
},
{
"typeId": "{ a: undefined }",
"valueId": "{ a: undefined }"
},
{
"typeId": "{ a: undefined }",
"valueId": "Buffer"
},
{
"typeId": "{ a: undefined }",
"valueId": "Buffer3"
},
{
"typeId": "{ a: undefined }",
"valueId": "Buffer10"
},
{
"typeId": "@{ a: undefined }",
"value": []
},
{
"typeId": "@{ a: undefined }",
"value": [
0
]
},
{
"typeId": "@{ a: undefined }",
"value": [
"foobar"
]
},
{
"typeId": "@{ a: undefined }",
"value": [
{
"a": 0
}
]
},
{
"typeId": "@{ a: undefined }",
"value": [
null
]
},
{
"typeId": "@{ a: undefined }",
"value": {}
},
{
"typeId": "@{ a: undefined }",
"value": {
"b": 0
}
},
{
"typeId": "@{ a: undefined }",
"valueId": "emptyType"
},
{
"typeId": "@{ a: undefined }",
"valueId": "customType"
},
{
"typeId": "@{ a: undefined }",
"valueId": "{ a: undefined }"
},
{
"typeId": "@{ a: undefined }",
"valueId": "Buffer"
},
{
"typeId": "@{ a: undefined }",
"valueId": "Buffer3"
},
{
"typeId": "@{ a: undefined }",
"valueId": "Buffer10"
},
{
"typeId": "?Unmatchable"
},
{
"typeId": "?Unmatchable",
"value": null
},
{
"typeId": "{ a: ?Unmatchable }",
"value": []
},
{
"typeId": "{ a: ?Unmatchable }",
"value": [
0
]
},
{
"typeId": "{ a: ?Unmatchable }",
"value": [
"foobar"
]
},
{
"typeId": "{ a: ?Unmatchable }",
"value": [
{
"a": 0
}
]
},
{
"typeId": "{ a: ?Unmatchable }",
"value": [
null
]
},
{
"typeId": "{ a: ?Unmatchable }",
"value": {}
},
{
"typeId": "{ a: ?Unmatchable }",
"value": {
"a": null
}
},
{
"typeId": "{ a: ?Unmatchable }",
"value": {
"b": 0
}
},
{
"typeId": "{ a: ?Unmatchable }",
"valueId": "emptyType"
},
{
"typeId": "{ a: ?Unmatchable }",
"valueId": "customType"
},
{
"typeId": "{ a: ?Unmatchable }",
"valueId": "{ a: undefined }"
},
{
"typeId": "{ a: ?Unmatchable }",
"valueId": "Buffer"
},
{
"typeId": "{ a: ?Unmatchable }",
"valueId": "Buffer3"
},
{
"typeId": "{ a: ?Unmatchable }",
"valueId": "Buffer10"
},
{
"typeId": ">CustomType",
"valueId": "customType"
},
{
"typeId": "{ String }",
"value": []
},
{
"typeId": "{ String }",
"value": [
"foobar"
]
},
{
"typeId": "{ String }",
"value": {}
},
{
"typeId": "{ String }",
"value": {
"a": "foo",
"b": "bar"
}
},
{
"typeId": "{ String }",
"valueId": "emptyType"
},
{
"typeId": "{ String|Number }",
"value": []
},
{
"typeId": "{ String|Number }",
"value": [
0
]
},
{
"typeId": "{ String|Number }",
"value": [
"foobar"
]
},
{
"typeId": "{ String|Number }",
"value": {}
},
{
"typeId": "{ String|Number }",
"value": {
"a": 0
}
},
{
"typeId": "{ String|Number }",
"value": {
"a": 0,
"b": 0
}
},
{
"typeId": "{ String|Number }",
"value": {
"b": 0
}
},
{
"typeId": "{ String|Number }",
"value": {
"a": "foo",
"b": "bar"
}
},
{
"typeId": "{ String|Number }",
"valueId": "emptyType"
},
{
"typeId": "{ String|Number }",
"valueId": "customType"
},
{
"typeId": "{ String: Number }",
"value": []
},
{
"typeId": "{ String: Number }",
"value": [
0
]
},
{
"typeId": "{ String: Number }",
"value": {}
},
{
"typeId": "{ String: Number }",
"value": {
"a": 0
}
},
{
"typeId": "{ String: Number }",
"value": {
"a": 0,
"b": 0
}
},
{
"typeId": "{ String: Number }",
"value": {
"b": 0
}
},
{
"typeId": "{ String: Number }",
"valueId": "emptyType"
},
{
"typeId": "{ String: Number }",
"valueId": "customType"
},
{
"typeId": "{ Letter: Number }",
"value": []
},
{
"typeId": "{ Letter: Number }",
"value": {}
},
{
"typeId": "{ Letter: Number }",
"value": {
"a": 0
}
},
{
"typeId": "{ Letter: Number }",
"value": {
"a": 0,
"b": 0
}
},
{
"typeId": "{ Letter: Number }",
"value": {
"b": 0
}
},
{
"typeId": "{ Letter: Number }",
"valueId": "emptyType"
},
{
"typeId": "{ Letter: Number }",
"valueId": "customType"
},
{
"typeId": "{ a: { b: Buffer3 } }",
"valueId": "{ a: { b: Buffer3 } }"
},
{
"typeId": "{ a: Buffer10|Number }",
"value": {
"a": 0
}
},
{
"typeId": "{ a: Buffer10|Number }",
"value": {
"a": 0,
"b": 0
}
},
{
"typeId": "{ a: Buffer10|Number }",
"valueId": "{ a: Buffer10 }"
},
{
"typeId": "{ a: Number } & { b: Number }",
"value": {
"a": 0,
"b": 0
}
},
{
"typeId": "Buffer0",
"valueId": "Buffer"
},
{
"typeId": "Buffer3",
"valueId": "Buffer3"
},
{
"typeId": "Buffer10",
"valueId": "Buffer10"
},
{
"typeId": "Int8",
"value": 0
},
{
"typeId": "Int8",
"value": 1
},
{
"typeId": "Int16",
"value": 0
},
{
"typeId": "Int16",
"value": 1
},
{
"typeId": "Int32",
"value": 0
},
{
"typeId": "Int32",
"value": 1
},
{
"typeId": "UInt8",
"value": 0
},
{
"typeId": "UInt8",
"value": 1
},
{
"typeId": "UInt16",
"value": 0
},
{
"typeId": "UInt16",
"value": 1
},
{
"typeId": "UInt32",
"value": 0
},
{
"typeId": "UInt32",
"value": 1
},
{
"typeId": "UInt53",
"value": 0
},
{
"typeId": "UInt53",
"value": 1
},
{
"type": "Number",
"value": -1
},
{
"type": "Number",
"value": 127
},
{
"type": "Number",
"value": 128
},
{
"type": "Number",
"value": 255
},
{
"type": "Number",
"value": 256
},
{
"type": "Number",
"value": -128
},
{
"type": "Number",
"value": -129
},
{
"type": "Number",
"value": 65534
},
{
"type": "Number",
"value": 65535
},
{
"type": "Number",
"value": 65536
},
{
"type": "Number",
"value": 4294967295
},
{
"type": "Number",
"value": 9007199254740991
},
{
"type": "Number",
"value": 9007199254740994
},
{
"type": "String",
"value": "fff"
},
{
"type": "String",
"value": "cafe1122deadbeef"
},
{
"type": "String",
"value": "0102030405060708090a0b0c0d0e0f101112131415161718191a1b1c1d1e1f20"
},
{
"type": "?Number",
"value": -1
},
{
"type": "?Number",
"value": 127
},
{
"type": "?Number",
"value": 128
},
{
"type": "?Number",
"value": 255
},
{
"type": "?Number",
"value": 256
},
{
"type": "?Number",
"value": -128
},
{
"type": "?Number",
"value": -129
},
{
"type": "?Number",
"value": 65534
},
{
"type": "?Number",
"value": 65535
},
{
"type": "?Number",
"value": 65536
},
{
"type": "?Number",
"value": 4294967295
},
{
"type": "?Number",
"value": 9007199254740991
},
{
"type": "?Number",
"value": 9007199254740994
},
{
"typeId": "(Number|String)",
"value": "fff"
},
{
"typeId": "(Number|String)",
"value": "cafe1122deadbeef"
},
{
"typeId": "(Number|String)",
"value": "0102030405060708090a0b0c0d0e0f101112131415161718191a1b1c1d1e1f20"
},
{
"typeId": "Boolean|Number|String",
"value": "fff"
},
{
"typeId": "Boolean|Number|String",
"value": "cafe1122deadbeef"
},
{
"typeId": "Boolean|Number|String",
"value": "0102030405060708090a0b0c0d0e0f101112131415161718191a1b1c1d1e1f20"
},
{
"typeId": "Boolean|Number|String",
"value": -1
},
{
"typeId": "Boolean|Number|String",
"value": 127
},
{
"typeId": "Boolean|Number|String",
"value": 128
},
{
"typeId": "Boolean|Number|String",
"value": 255
},
{
"typeId": "Boolean|Number|String",
"value": 256
},
{
"typeId": "Boolean|Number|String",
"value": -128
},
{
"typeId": "Boolean|Number|String",
"value": -129
},
{
"typeId": "Boolean|Number|String",
"value": 65534
},
{
"typeId": "Boolean|Number|String",
"value": 65535
},
{
"typeId": "Boolean|Number|String",
"value": 65536
},
{
"typeId": "Boolean|Number|String",
"value": 4294967295
},
{
"typeId": "Boolean|Number|String",
"value": 9007199254740991
},
{
"typeId": "Boolean|Number|String",
"value": 9007199254740994
},
{
"typeId": "?Boolean|Number",
"value": -1
},
{
"typeId": "?Boolean|Number",
"value": 127
},
{
"typeId": "?Boolean|Number",
"value": 128
},
{
"typeId": "?Boolean|Number",
"value": 255
},
{
"typeId": "?Boolean|Number",
"value": 256
},
{
"typeId": "?Boolean|Number",
"value": -128
},
{
"typeId": "?Boolean|Number",
"value": -129
},
{
"typeId": "?Boolean|Number",
"value": 65534
},
{
"typeId": "?Boolean|Number",
"value": 65535
},
{
"typeId": "?Boolean|Number",
"value": 65536
},
{
"typeId": "?Boolean|Number",
"value": 4294967295
},
{
"typeId": "?Boolean|Number",
"value": 9007199254740991
},
{
"typeId": "?Boolean|Number",
"value": 9007199254740994
},
{
"typeId": "Hex",
"value": "cafe1122deadbeef"
},
{
"typeId": "Hex",
"value": "0102030405060708090a0b0c0d0e0f101112131415161718191a1b1c1d1e1f20"
},
{
"typeId": "Hex64",
"value": "0102030405060708090a0b0c0d0e0f101112131415161718191a1b1c1d1e1f20"
},
{
"typeId": "Int8",
"value": -1
},
{
"typeId": "Int8",
"value": 127
},
{
"typeId": "Int8",
"value": -128
},
{
"typeId": "Int16",
"value": -1
},
{
"typeId": "Int16",
"value": 127
},
{
"typeId": "Int16",
"value": 128
},
{
"typeId": "Int16",
"value": 255
},
{
"typeId": "Int16",
"value": 256
},
{
"typeId": "Int16",
"value": -128
},
{
"typeId": "Int16",
"value": -129
},
{
"typeId": "Int32",
"value": -1
},
{
"typeId": "Int32",
"value": 127
},
{
"typeId": "Int32",
"value": 128
},
{
"typeId": "Int32",
"value": 255
},
{
"typeId": "Int32",
"value": 256
},
{
"typeId": "Int32",
"value": -128
},
{
"typeId": "Int32",
"value": -129
},
{
"typeId": "Int32",
"value": 65534
},
{
"typeId": "Int32",
"value": 65535
},
{
"typeId": "Int32",
"value": 65536
},
{
"typeId": "UInt8",
"value": 127
},
{
"typeId": "UInt8",
"value": 128
},
{
"typeId": "UInt8",
"value": 255
},
{
"typeId": "UInt16",
"value": 127
},
{
"typeId": "UInt16",
"value": 128
},
{
"typeId": "UInt16",
"value": 255
},
{
"typeId": "UInt16",
"value": 256
},
{
"typeId": "UInt16",
"value": 65534
},
{
"typeId": "UInt16",
"value": 65535
},
{
"typeId": "UInt32",
"value": 127
},
{
"typeId": "UInt32",
"value": 128
},
{
"typeId": "UInt32",
"value": 255
},
{
"typeId": "UInt32",
"value": 256
},
{
"typeId": "UInt32",
"value": 65534
},
{
"typeId": "UInt32",
"value": 65535
},
{
"typeId": "UInt32",
"value": 65536
},
{
"typeId": "UInt32",
"value": 4294967295
},
{
"typeId": "UInt53",
"value": 127
},
{
"typeId": "UInt53",
"value": 128
},
{
"typeId": "UInt53",
"value": 255
},
{
"typeId": "UInt53",
"value": 256
},
{
"typeId": "UInt53",
"value": 65534
},
{
"typeId": "UInt53",
"value": 65535
},
{
"typeId": "UInt53",
"value": 65536
},
{
"typeId": "UInt53",
"value": 4294967295
},
{
"typeId": "UInt53",
"value": 9007199254740991
}
],
"invalid": [
{
"exception": "Expected Array, got String \"\"",
"type": "Array",
"value": ""
},
{
"exception": "Expected Array, got String \"foobar\"",
"type": "Array",
"value": "foobar"
},
{
"exception": "Expected Array, got Number 0",
"type": "Array",
"value": 0
},
{
"exception": "Expected Array, got Number 1",
"type": "Array",
"value": 1
},
{
"exception": "Expected Array, got Boolean false",
"type": "Array",
"value": false
},
{
"exception": "Expected Array, got Boolean true",
"type": "Array",
"value": true
},
{
"exception": "Expected Array, got undefined",
"type": "Array"
},
{
"exception": "Expected Array, got null",
"type": "Array",
"value": null
},
{
"exception": "Expected Array, got Object",
"type": "Array",
"value": {}
},
{
"exception": "Expected Array, got Object",
"type": "Array",
"value": {
"a": null
}
},
{
"exception": "Expected Array, got Object",
"type": "Array",
"value": {
"a": 0
}
},
{
"exception": "Expected Array, got Object",
"type": "Array",
"value": {
"a": 0,
"b": 0
}
},
{
"exception": "Expected Array, got Object",
"type": "Array",
"value": {
"b": 0
}
},
{
"exception": "Expected Array, got Object",
"type": "Array",
"value": {
"a": {
"b": 0
}
}
},
{
"exception": "Expected Array, got Object",
"type": "Array",
"value": {
"a": {
"b": null
}
}
},
{
"exception": "Expected Array, got Object",
"type": "Array",
"value": {
"a": {
"b": {
"c": 0
}
}
}
},
{
"exception": "Expected Array, got Object",
"type": "Array",
"value": {
"a": {
"b": {
"c": null
}
}
}
},
{
"exception": "Expected Array, got Object",
"type": "Array",
"value": {
"a": {
"b": {
"c": 0,
"d": 0
}
}
}
},
{
"exception": "Expected Array, got Object",
"type": "Array",
"value": {
"a": "foo",
"b": "bar"
}
},
{
"exception": "Expected Array, got Object",
"type": "Array",
"value": {
"a": "foo",
"b": {
"c": "bar"
}
}
},
{
"exception": "Expected Array, got Function",
"type": "Array",
"valueId": "function"
},
{
"exception": "Expected Array, got EmptyType",
"type": "Array",
"valueId": "emptyType"
},
{
"exception": "Expected Array, got CustomType",
"type": "Array",
"valueId": "customType"
},
{
"exception": "Expected Array, got Object",
"type": "Array",
"valueId": "{ a: undefined }"
},
{
"exception": "Expected Array, got Object",
"type": "Array",
"valueId": "{ a: Buffer3 }"
},
{
"exception": "Expected Array, got Object",
"type": "Array",
"valueId": "{ a: Buffer10 }"
},
{
"exception": "Expected Array, got Object",
"type": "Array",
"valueId": "{ a: { b: Buffer3 } }"
},
{
"exception": "Expected Array, got Object",
"type": "Array",
"valueId": "{ a: { b: Buffer10 } }"
},
{
"exception": "Expected Array, got Buffer",
"type": "Array",
"valueId": "Buffer"
},
{
"exception": "Expected Array, got Buffer",
"type": "Array",
"valueId": "Buffer3"
},
{
"exception": "Expected Array, got Buffer",
"type": "Array",
"valueId": "Buffer10"
},
{
"exception": "Expected Boolean, got String \"\"",
"type": "Boolean",
"value": ""
},
{
"exception": "Expected Boolean, got String \"foobar\"",
"type": "Boolean",
"value": "foobar"
},
{
"exception": "Expected Boolean, got Number 0",
"type": "Boolean",
"value": 0
},
{
"exception": "Expected Boolean, got Number 1",
"type": "Boolean",
"value": 1
},
{
"exception": "Expected Boolean, got Array",
"type": "Boolean",
"value": []
},
{
"exception": "Expected Boolean, got Array",
"type": "Boolean",
"value": [
0
]
},
{
"exception": "Expected Boolean, got Array",
"type": "Boolean",
"value": [
"foobar"
]
},
{
"exception": "Expected Boolean, got Array",
"type": "Boolean",
"value": [
{
"a": 0
}
]
},
{
"exception": "Expected Boolean, got Array",
"type": "Boolean",
"value": [
null
]
},
{
"exception": "Expected Boolean, got undefined",
"type": "Boolean"
},
{
"exception": "Expected Boolean, got null",
"type": "Boolean",
"value": null
},
{
"exception": "Expected Boolean, got Object",
"type": "Boolean",
"value": {}
},
{
"exception": "Expected Boolean, got Object",
"type": "Boolean",
"value": {
"a": null
}
},
{
"exception": "Expected Boolean, got Object",
"type": "Boolean",
"value": {
"a": 0
}
},
{
"exception": "Expected Boolean, got Object",
"type": "Boolean",
"value": {
"a": 0,
"b": 0
}
},
{
"exception": "Expected Boolean, got Object",
"type": "Boolean",
"value": {
"b": 0
}
},
{
"exception": "Expected Boolean, got Object",
"type": "Boolean",
"value": {
"a": {
"b": 0
}
}
},
{
"exception": "Expected Boolean, got Object",
"type": "Boolean",
"value": {
"a": {
"b": null
}
}
},
{
"exception": "Expected Boolean, got Object",
"type": "Boolean",
"value": {
"a": {
"b": {
"c": 0
}
}
}
},
{
"exception": "Expected Boolean, got Object",
"type": "Boolean",
"value": {
"a": {
"b": {
"c": null
}
}
}
},
{
"exception": "Expected Boolean, got Object",
"type": "Boolean",
"value": {
"a": {
"b": {
"c": 0,
"d": 0
}
}
}
},
{
"exception": "Expected Boolean, got Object",
"type": "Boolean",
"value": {
"a": "foo",
"b": "bar"
}
},
{
"exception": "Expected Boolean, got Object",
"type": "Boolean",
"value": {
"a": "foo",
"b": {
"c": "bar"
}
}
},
{
"exception": "Expected Boolean, got Function",
"type": "Boolean",
"valueId": "function"
},
{
"exception": "Expected Boolean, got EmptyType",
"type": "Boolean",
"valueId": "emptyType"
},
{
"exception": "Expected Boolean, got CustomType",
"type": "Boolean",
"valueId": "customType"
},
{
"exception": "Expected Boolean, got Object",
"type": "Boolean",
"valueId": "{ a: undefined }"
},
{
"exception": "Expected Boolean, got Object",
"type": "Boolean",
"valueId": "{ a: Buffer3 }"
},
{
"exception": "Expected Boolean, got Object",
"type": "Boolean",
"valueId": "{ a: Buffer10 }"
},
{
"exception": "Expected Boolean, got Object",
"type": "Boolean",
"valueId": "{ a: { b: Buffer3 } }"
},
{
"exception": "Expected Boolean, got Object",
"type": "Boolean",
"valueId": "{ a: { b: Buffer10 } }"
},
{
"exception": "Expected Boolean, got Buffer",
"type": "Boolean",
"valueId": "Buffer"
},
{
"exception": "Expected Boolean, got Buffer",
"type": "Boolean",
"valueId": "Buffer3"
},
{
"exception": "Expected Boolean, got Buffer",
"type": "Boolean",
"valueId": "Buffer10"
},
{
"exception": "Expected Buffer, got String \"\"",
"type": "Buffer",
"value": ""
},
{
"exception": "Expected Buffer, got String \"foobar\"",
"type": "Buffer",
"value": "foobar"
},
{
"exception": "Expected Buffer, got Number 0",
"type": "Buffer",
"value": 0
},
{
"exception": "Expected Buffer, got Number 1",
"type": "Buffer",
"value": 1
},
{
"exception": "Expected Buffer, got Array",
"type": "Buffer",
"value": []
},
{
"exception": "Expected Buffer, got Array",
"type": "Buffer",
"value": [
0
]
},
{
"exception": "Expected Buffer, got Array",
"type": "Buffer",
"value": [
"foobar"
]
},
{
"exception": "Expected Buffer, got Array",
"type": "Buffer",
"value": [
{
"a": 0
}
]
},
{
"exception": "Expected Buffer, got Array",
"type": "Buffer",
"value": [
null
]
},
{
"exception": "Expected Buffer, got Boolean false",
"type": "Buffer",
"value": false
},
{
"exception": "Expected Buffer, got Boolean true",
"type": "Buffer",
"value": true
},
{
"exception": "Expected Buffer, got undefined",
"type": "Buffer"
},
{
"exception": "Expected Buffer, got null",
"type": "Buffer",
"value": null
},
{
"exception": "Expected Buffer, got Object",
"type": "Buffer",
"value": {}
},
{
"exception": "Expected Buffer, got Object",
"type": "Buffer",
"value": {
"a": null
}
},
{
"exception": "Expected Buffer, got Object",
"type": "Buffer",
"value": {
"a": 0
}
},
{
"exception": "Expected Buffer, got Object",
"type": "Buffer",
"value": {
"a": 0,
"b": 0
}
},
{
"exception": "Expected Buffer, got Object",
"type": "Buffer",
"value": {
"b": 0
}
},
{
"exception": "Expected Buffer, got Object",
"type": "Buffer",
"value": {
"a": {
"b": 0
}
}
},
{
"exception": "Expected Buffer, got Object",
"type": "Buffer",
"value": {
"a": {
"b": null
}
}
},
{
"exception": "Expected Buffer, got Object",
"type": "Buffer",
"value": {
"a": {
"b": {
"c": 0
}
}
}
},
{
"exception": "Expected Buffer, got Object",
"type": "Buffer",
"value": {
"a": {
"b": {
"c": null
}
}
}
},
{
"exception": "Expected Buffer, got Object",
"type": "Buffer",
"value": {
"a": {
"b": {
"c": 0,
"d": 0
}
}
}
},
{
"exception": "Expected Buffer, got Object",
"type": "Buffer",
"value": {
"a": "foo",
"b": "bar"
}
},
{
"exception": "Expected Buffer, got Object",
"type": "Buffer",
"value": {
"a": "foo",
"b": {
"c": "bar"
}
}
},
{
"exception": "Expected Buffer, got Function",
"type": "Buffer",
"valueId": "function"
},
{
"exception": "Expected Buffer, got EmptyType",
"type": "Buffer",
"valueId": "emptyType"
},
{
"exception": "Expected Buffer, got CustomType",
"type": "Buffer",
"valueId": "customType"
},
{
"exception": "Expected Buffer, got Object",
"type": "Buffer",
"valueId": "{ a: undefined }"
},
{
"exception": "Expected Buffer, got Object",
"type": "Buffer",
"valueId": "{ a: Buffer3 }"
},
{
"exception": "Expected Buffer, got Object",
"type": "Buffer",
"valueId": "{ a: Buffer10 }"
},
{
"exception": "Expected Buffer, got Object",
"type": "Buffer",
"valueId": "{ a: { b: Buffer3 } }"
},
{
"exception": "Expected Buffer, got Object",
"type": "Buffer",
"valueId": "{ a: { b: Buffer10 } }"
},
{
"exception": "Expected Function, got String \"\"",
"type": "Function",
"value": ""
},
{
"exception": "Expected Function, got String \"foobar\"",
"type": "Function",
"value": "foobar"
},
{
"exception": "Expected Function, got Number 0",
"type": "Function",
"value": 0
},
{
"exception": "Expected Function, got Number 1",
"type": "Function",
"value": 1
},
{
"exception": "Expected Function, got Array",
"type": "Function",
"value": []
},
{
"exception": "Expected Function, got Array",
"type": "Function",
"value": [
0
]
},
{
"exception": "Expected Function, got Array",
"type": "Function",
"value": [
"foobar"
]
},
{
"exception": "Expected Function, got Array",
"type": "Function",
"value": [
{
"a": 0
}
]
},
{
"exception": "Expected Function, got Array",
"type": "Function",
"value": [
null
]
},
{
"exception": "Expected Function, got Boolean false",
"type": "Function",
"value": false
},
{
"exception": "Expected Function, got Boolean true",
"type": "Function",
"value": true
},
{
"exception": "Expected Function, got undefined",
"type": "Function"
},
{
"exception": "Expected Function, got null",
"type": "Function",
"value": null
},
{
"exception": "Expected Function, got Object",
"type": "Function",
"value": {}
},
{
"exception": "Expected Function, got Object",
"type": "Function",
"value": {
"a": null
}
},
{
"exception": "Expected Function, got Object",
"type": "Function",
"value": {
"a": 0
}
},
{
"exception": "Expected Function, got Object",
"type": "Function",
"value": {
"a": 0,
"b": 0
}
},
{
"exception": "Expected Function, got Object",
"type": "Function",
"value": {
"b": 0
}
},
{
"exception": "Expected Function, got Object",
"type": "Function",
"value": {
"a": {
"b": 0
}
}
},
{
"exception": "Expected Function, got Object",
"type": "Function",
"value": {
"a": {
"b": null
}
}
},
{
"exception": "Expected Function, got Object",
"type": "Function",
"value": {
"a": {
"b": {
"c": 0
}
}
}
},
{
"exception": "Expected Function, got Object",
"type": "Function",
"value": {
"a": {
"b": {
"c": null
}
}
}
},
{
"exception": "Expected Function, got Object",
"type": "Function",
"value": {
"a": {
"b": {
"c": 0,
"d": 0
}
}
}
},
{
"exception": "Expected Function, got Object",
"type": "Function",
"value": {
"a": "foo",
"b": "bar"
}
},
{
"exception": "Expected Function, got Object",
"type": "Function",
"value": {
"a": "foo",
"b": {
"c": "bar"
}
}
},
{
"exception": "Expected Function, got EmptyType",
"type": "Function",
"valueId": "emptyType"
},
{
"exception": "Expected Function, got CustomType",
"type": "Function",
"valueId": "customType"
},
{
"exception": "Expected Function, got Object",
"type": "Function",
"valueId": "{ a: undefined }"
},
{
"exception": "Expected Function, got Object",
"type": "Function",
"valueId": "{ a: Buffer3 }"
},
{
"exception": "Expected Function, got Object",
"type": "Function",
"valueId": "{ a: Buffer10 }"
},
{
"exception": "Expected Function, got Object",
"type": "Function",
"valueId": "{ a: { b: Buffer3 } }"
},
{
"exception": "Expected Function, got Object",
"type": "Function",
"valueId": "{ a: { b: Buffer10 } }"
},
{
"exception": "Expected Function, got Buffer",
"type": "Function",
"valueId": "Buffer"
},
{
"exception": "Expected Function, got Buffer",
"type": "Function",
"valueId": "Buffer3"
},
{
"exception": "Expected Function, got Buffer",
"type": "Function",
"valueId": "Buffer10"
},
{
"exception": "Expected Null, got String \"\"",
"type": "Null",
"value": ""
},
{
"exception": "Expected Null, got String \"foobar\"",
"type": "Null",
"value": "foobar"
},
{
"exception": "Expected Null, got Number 0",
"type": "Null",
"value": 0
},
{
"exception": "Expected Null, got Number 1",
"type": "Null",
"value": 1
},
{
"exception": "Expected Null, got Array",
"type": "Null",
"value": [