Skip to content

Instantly share code, notes, and snippets.

@plwalters
Created August 13, 2015 01:28
Show Gist options
  • Save plwalters/43dfe3f03137bd07442d to your computer and use it in GitHub Desktop.
Save plwalters/43dfe3f03137bd07442d to your computer and use it in GitHub Desktop.
Metadata api.json
{
"id": 2,
"name": "\"aurelia-metadata\"",
"kind": 2,
"kindString": "Module",
"flags": {},
"children": [
{
"id": 15,
"name": "DecoratorApplicator",
"kind": 128,
"kindString": "Class",
"flags": {
"isExported": true
},
"children": [
{
"id": 16,
"name": "constructor",
"kind": 512,
"kindString": "Constructor",
"flags": {
"isExported": true
},
"signatures": [
{
"id": 17,
"name": "new DecoratorApplicator",
"kind": 16384,
"kindString": "Constructor signature",
"flags": {},
"type": {
"type": "reference",
"name": "DecoratorApplicator",
"id": 15
}
}
]
},
{
"id": 18,
"name": "decorator",
"kind": 2048,
"kindString": "Method",
"flags": {
"isExported": true
},
"signatures": [
{
"id": 19,
"name": "decorator",
"kind": 4096,
"kindString": "Call signature",
"flags": {},
"parameters": [
{
"id": 20,
"name": "decorator",
"kind": 32768,
"kindString": "Parameter",
"flags": {},
"type": {
"type": "reference",
"name": "Function"
}
}
],
"type": {
"type": "reference",
"name": "DecoratorApplicator",
"id": 15
}
}
]
}
],
"groups": [
{
"title": "Constructors",
"kind": 512,
"children": [
16
]
},
{
"title": "Methods",
"kind": 2048,
"children": [
18
]
}
]
},
{
"id": 3,
"name": "Origin",
"kind": 128,
"kindString": "Class",
"flags": {
"isExported": true
},
"comment": {
"shortText": "A metadata annotation that describes the origin module of the function to which it's attached.",
"tags": [
{
"tag": "class",
"text": "Origin"
},
{
"tag": "constructor",
"text": ""
},
{
"tag": "param",
"text": "The origin module id.",
"param": "moduleId"
},
{
"tag": "param",
"text": "The name of the export in the origin module.\n",
"param": "moduleMember"
}
]
},
"children": [
{
"id": 4,
"name": "constructor",
"kind": 512,
"kindString": "Constructor",
"flags": {
"isExported": true
},
"signatures": [
{
"id": 5,
"name": "new Origin",
"kind": 16384,
"kindString": "Constructor signature",
"flags": {},
"parameters": [
{
"id": 6,
"name": "moduleId",
"kind": 32768,
"kindString": "Parameter",
"flags": {},
"type": {
"type": "instrinct",
"name": "string"
}
},
{
"id": 7,
"name": "moduleMember",
"kind": 32768,
"kindString": "Parameter",
"flags": {},
"type": {
"type": "instrinct",
"name": "string"
}
}
],
"type": {
"type": "reference",
"name": "Origin",
"id": 3
}
}
]
},
{
"id": 8,
"name": "get",
"kind": 2048,
"kindString": "Method",
"flags": {
"isStatic": true,
"isExported": true
},
"signatures": [
{
"id": 9,
"name": "get",
"kind": 4096,
"kindString": "Call signature",
"flags": {},
"comment": {
"shortText": "Get the Origin annotation for the specified function.",
"returns": "Returns the Origin metadata.\n",
"tags": [
{
"tag": "method",
"text": "get"
},
{
"tag": "static",
"text": ""
}
]
},
"parameters": [
{
"id": 10,
"name": "fn",
"kind": 32768,
"kindString": "Parameter",
"flags": {},
"comment": {
"text": "The function to inspect for Origin metadata."
},
"type": {
"type": "reference",
"name": "Function"
}
}
],
"type": {
"type": "instrinct",
"name": "any"
}
}
]
},
{
"id": 11,
"name": "set",
"kind": 2048,
"kindString": "Method",
"flags": {
"isStatic": true,
"isExported": true
},
"signatures": [
{
"id": 12,
"name": "set",
"kind": 4096,
"kindString": "Call signature",
"flags": {},
"comment": {
"shortText": "Set the Origin annotation for the specified function.",
"returns": "Returns the Origin metadata.\n",
"tags": [
{
"tag": "method",
"text": "set"
},
{
"tag": "static",
"text": ""
}
]
},
"parameters": [
{
"id": 13,
"name": "fn",
"kind": 32768,
"kindString": "Parameter",
"flags": {},
"comment": {
"shortText": "The Origin metadata to store on the function."
},
"type": {
"type": "reference",
"name": "Function"
}
},
{
"id": 14,
"name": "origin",
"kind": 32768,
"kindString": "Parameter",
"flags": {},
"type": {
"type": "reference",
"name": "Origin",
"id": 3
}
}
],
"type": {
"type": "instrinct",
"name": "any"
}
}
]
}
],
"groups": [
{
"title": "Constructors",
"kind": 512,
"children": [
4
]
},
{
"title": "Methods",
"kind": 2048,
"children": [
8,
11
]
}
]
},
{
"id": 22,
"name": "Decorators",
"kind": 32,
"kindString": "Variable",
"flags": {
"isExported": true
},
"type": {
"type": "instrinct",
"name": "any"
}
},
{
"id": 21,
"name": "Metadata",
"kind": 32,
"kindString": "Variable",
"flags": {
"isExported": true
},
"comment": {
"shortText": "Provides helpers for working with metadata.",
"tags": [
{
"tag": "class",
"text": "Metadata"
},
{
"tag": "static",
"text": "\n"
}
]
},
"type": {
"type": "instrinct",
"name": "any"
}
}
],
"groups": [
{
"title": "Classes",
"kind": 128,
"children": [
15,
3
]
},
{
"title": "Variables",
"kind": 32,
"children": [
22,
21
]
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment