Skip to content

Commit

Permalink
Kill off most of the ts errors by using a better config
Browse files Browse the repository at this point in the history
  • Loading branch information
TotallyInformation committed Jun 13, 2022
1 parent 7101d62 commit bf68228
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 2 deletions.
14 changes: 14 additions & 0 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"compilerOptions": {
"allowJs": true,
"checkJs": true,
"strictNullChecks": false,
"strict": false,
"lib": ["ES2022"],
"module": "commonjs",
"moduleResolution": "node",
"target": "es2022",
"noEmit": true,
}

}
12 changes: 10 additions & 2 deletions typedefs.js
Original file line number Diff line number Diff line change
Expand Up @@ -319,7 +319,7 @@
* @property {object} customServer.serverOptions Optional ExpressJS server options
*
* @property {undefined|object} degitEmitter Event emitter for degit, populated on 1st use. See POST admin API
* @property {undefined|runtimeRED} RED Keep a reference to RED for convenience. Set at the start of Uib
* @property {runtimeRED|null} RED Keep a reference to RED for convenience. Set at the start of Uib
* @property {string=} version The deployed version of uibuilder (from `package.json`)
* @property {string=} httpRoot Copy of RED.settings.httpRoot for ease of use
* @property {string=} reDeployNeeded If the last deployed version is this version or earlier and the current version is greater than this, tell the Editor that a redeploy is needed
Expand All @@ -339,7 +339,7 @@
/** cacheNode1
* @typedef {object} cacheNode1 Local copy of the node instance config + other info
* @property {boolean} cacheall Flag indicating each individual msg is cached
* @property {string} cacheKey msg property to use to group cached msgs
* @property {string|undefined} cacheKey msg property to use to group cached msgs
* @property {number} num number of cached msgs to retain
* @property {string} storeName Which store to use for the context variable
* @property {string} name only used for labelling the node in the flow
Expand All @@ -348,6 +348,14 @@
* @property {Function} setC A reference to the context set function for this node instance
*/

/** uibListNode
* @typedef {{
* name: string;
* topic: string;
* url: string;
* }} uibListNode
*/

/** MsgAuth
* @typedef {object} MsgAuth The standard auth object used by uibuilder security. See docs for details.
* Note that any other data may be passed from your front-end code in the _auth.info object.
Expand Down

0 comments on commit bf68228

Please sign in to comment.