Revision control
Copy as Markdown
Other Tools
[
{
"namespace": "extensionTypes",
"annotations": [
{
"version_added": true
}
],
"types": [
{
"id": "ExtensionFileOrCode",
"annotations": [
{
"text": "Specify code, either by pointing to a file or by providing the code directly. Only one of the two is allowed."
}
],
"choices": [
{
"type": "object",
"properties": {
"file": {
"annotations": [
{
"text": "A URL relative to the extension's <var>manifest.json</var> file, and pointing to a JavaScript file to register."
}
]
}
}
},
{
"type": "object",
"properties": {
"code": {
"annotations": [
{
"text": "A string of JavaScript code to register."
}
]
}
}
}
]
}
]
}
]