tw5-typed 0.1.6 → 0.1.7
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 +1 -2
- package/package.json +1 -1
- package/src/tw.d.ts +1 -0
package/README.md
CHANGED
|
@@ -49,7 +49,6 @@ You can add new `*.d.ts` file to contain your types:
|
|
|
49
49
|
1. use `declare module 'tiddlywiki' { }` to wrap all your types.
|
|
50
50
|
1. don't forget to `export` all your types.
|
|
51
51
|
1. to add type for global variable, add `global { }` inside that `declare module 'tiddlywiki' { }`, like `global { var $tw: I$TW; }`
|
|
52
|
-
|
|
53
|
-
And add `import './xxx';` in the `index.d.ts` file.
|
|
52
|
+
1. add type import like `/// <reference path="ast.d.ts" />` in the `tw.d.ts`
|
|
54
53
|
|
|
55
54
|
To rapid prototype the type, just right click a type to open `.d.ts` file in the `node_modules`, and try create new file there, and copy to this repo after a success.
|
package/package.json
CHANGED