shaka-packager/tools/json_schema_compiler/test/any.json

69 lines
1.4 KiB
JSON

[
{
"namespace": "any",
"description": "The any API.",
"types": [
{
"id": "AnyType",
"type": "object",
"properties": {
"any": {
"type": "any",
"description": "Any way you want it, that's the way you need it."
}
}
}
],
"functions": [
{
"name": "optionalAny",
"type": "function",
"description": "Takes an optional any param.",
"parameters": [
{
"type": "any",
"name": "anyName",
"optional": true
},
{
"type": "function",
"name": "callback",
"parameters": []
}
]
},
{
"name": "returnAny",
"type": "function",
"description": "Returns any.",
"nodoc": "true",
"parameters": [
{
"type": "function",
"name": "callback",
"parameters": [
{
"name": "result",
"type": "any"
}
]
}
]
}
],
"events": [
{
"name": "onAnyFired",
"type": "function",
"description": "Fired when anything is ready.",
"parameters": [
{
"name": "something",
"type": "any"
}
]
}
]
}
]