runtime-type-inspector 2.0.1 → 2.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +8 -5
- package/build/rti-transpiler.cjs +2359 -0
- package/build/rti-transpiler.mjs +1979 -0
- package/package.json +4 -2
- package/.eslintrc.js +0 -480
- package/jsconfig.json +0 -10
- package/plugin-parcel/index.mjs +0 -4
- package/plugin-rollup/index.mjs +0 -78
- package/plugin-webpack/index.mjs +0 -4
- package/rollup.config.mjs +0 -183
- package/src-runtime/assertType.mjs +0 -54
- package/src-runtime/createDiv.mjs +0 -69
- package/src-runtime/index.mjs +0 -21
- package/src-runtime/makeJSDoc.mjs +0 -40
- package/src-runtime/registerClass.mjs +0 -11
- package/src-runtime/registerTypedef.mjs +0 -12
- package/src-runtime/typecheckDiv.mjs +0 -3
- package/src-runtime/typecheckEvery.mjs +0 -21
- package/src-runtime/typecheckOptions.mjs +0 -60
- package/src-runtime/typecheckTable.mjs +0 -14
- package/src-runtime/typecheckWarn.mjs +0 -23
- package/src-runtime/validateArray.mjs +0 -26
- package/src-runtime/validateDivision.mjs +0 -31
- package/src-runtime/validateMap.mjs +0 -36
- package/src-runtime/validateNumber.mjs +0 -29
- package/src-runtime/validateObject.mjs +0 -43
- package/src-runtime/validateRecord.mjs +0 -31
- package/src-runtime/validateSet.mjs +0 -26
- package/src-runtime/validateTuple.mjs +0 -28
- package/src-runtime/validateType.mjs +0 -214
- package/src-runtime/validateTypedef.mjs +0 -18
- package/src-runtime/validateUnion.mjs +0 -19
- package/src-runtime/youCanAddABreakpointHere.mjs +0 -11
- package/src-transpiler/Stringifier.mjs +0 -1268
- package/src-transpiler/StringifierWithTypeAssertions.mjs +0 -478
- package/src-transpiler/addTypeChecks.mjs +0 -20
- package/src-transpiler/ast2json.mjs +0 -13
- package/src-transpiler/ast2jsonForComparison.mjs +0 -28
- package/src-transpiler/code2ast2code.mjs +0 -16
- package/src-transpiler/expandType.mjs +0 -187
- package/src-transpiler/expandTypeDepFree.mjs +0 -122
- package/src-transpiler/extractNameAndOptionality.mjs +0 -23
- package/src-transpiler/index.mjs +0 -13
- package/src-transpiler/parseJSDoc.mjs +0 -69
- package/src-transpiler/parseJSDocSetter.mjs +0 -16
- package/src-transpiler/parseJSDocTypedef.mjs +0 -69
- package/src-transpiler/simplifyType.mjs +0 -31
- package/src-transpiler/stat.mjs +0 -13
- package/ui/babel-core.mjs +0 -5
- package/ui/babel-helper-plugin-utils.mjs +0 -7
- package/ui/babel-parser.mjs +0 -8
- package/ui/babel-plugin-syntax-typescript.mjs +0 -58
- package/ui/importmap.js +0 -38
- package/ui/index.html +0 -30
- package/ui/index.mjs +0 -379
package/README.md
CHANGED
|
@@ -1,8 +1,5 @@
|
|
|
1
1
|
# `RuntimeTypeInspector.js` - your personal type-checking assistant 🕵️🐞🐛
|
|
2
2
|
|
|
3
|
-
# Status: under construction,
|
|
4
|
-
# preparing for first release 🚧🏗️🧰🚧
|
|
5
|
-
|
|
6
3
|
`RuntimeTypeInspector.js` alongside `JSDoc` is a powerful tool which works in tandem with `Babel.js` and `TypeScript` to generate type-asserting JavaScript files. Assertion code is injected into debug builds to perform runtime type checking of each function and method at runtime - a step which is required beyond pure static typing to help emerge the Incident Management Lifecycle.
|
|
7
4
|
|
|
8
5
|
The Incident Management Lifecycle is:
|
|
@@ -35,10 +32,16 @@ https://www.youtube.com/watch?v=xOp3YWU6M1g
|
|
|
35
32
|
|
|
36
33
|
[](https://www.youtube.com/watch?v=xOp3YWU6M1g)
|
|
37
34
|
|
|
38
|
-
# Installation
|
|
35
|
+
# Installation
|
|
39
36
|
|
|
40
37
|
```
|
|
41
38
|
npm install runtime-type-inspector
|
|
42
39
|
```
|
|
43
40
|
|
|
44
|
-
Live demo: https://
|
|
41
|
+
Live demo: https://runtimetypeinspector.org/
|
|
42
|
+
|
|
43
|
+
Thank you for reading and testing! You can also open DevTools and run:
|
|
44
|
+
|
|
45
|
+
```js
|
|
46
|
+
console.log(rtiTranspiler)
|
|
47
|
+
```
|