Skip to content

Commit

Permalink
chore(schema): remove final function ref to avoid anon iface gen
Browse files Browse the repository at this point in the history
  • Loading branch information
gadicc committed May 30, 2021
1 parent 97a7509 commit 0dfa06c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 41 deletions.
41 changes: 1 addition & 40 deletions schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -2400,26 +2400,7 @@
},
"ModuleThis": {
"properties": {
"_moduleExec": {
"additionalProperties": false,
"properties": {
"arguments": {},
"caller": {
"$ref": "#/definitions/interface-731470504-9821-11285-731470504-0-212357"
},
"length": {
"yahooFinanceType": "number"
},
"prototype": {}
},
"required": [
"prototype",
"length",
"arguments",
"caller"
],
"type": "object"
}
"_moduleExec": {}
},
"required": [
"_moduleExec"
Expand Down Expand Up @@ -6554,26 +6535,6 @@
"earnings"
],
"type": "object"
},
"interface-731470504-9821-11285-731470504-0-212357": {
"additionalProperties": false,
"properties": {
"arguments": {},
"caller": {
"$ref": "#/definitions/interface-731470504-9821-11285-731470504-0-212357"
},
"length": {
"yahooFinanceType": "number"
},
"prototype": {}
},
"required": [
"prototype",
"length",
"arguments",
"caller"
],
"type": "object"
}
}
}
4 changes: 3 additions & 1 deletion src/lib/moduleCommon.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,7 @@ export interface ModuleOptionsWithValidateTrue extends ModuleOptions {

export interface ModuleThis {
[key: string]: any;
_moduleExec: Function;
// TODO: should be ModuleExec function but requiring functions breaks
// schema generation because json-schema does not support functions.
_moduleExec: any;
}

0 comments on commit 0dfa06c

Please sign in to comment.