This repository was archived by the owner on Sep 11, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +42
-0
lines changed Expand file tree Collapse file tree 3 files changed +42
-0
lines changed Original file line number Diff line number Diff line change @@ -56,6 +56,20 @@ Here's a general how to use it:
5656<
script src =
" https://cdn.jsdelivr.net/npm/@litert/[email protected] /dist/loader.min.js" ></
script >
5757```
5858
59+ The code hint needs to be added in "tsconfig.json":
60+
61+ ``` json
62+ {
63+ "compilerOptions" : {
64+ ...
65+ "typeRoots" : [
66+ " ./node_modules/@types" ,
67+ " ./node_modules/@litert/loader"
68+ ]
69+ }
70+ }
71+ ```
72+
5973``` typescript
6074// All actions are written in the "ready" callback.
6175loader .ready (function () {
Original file line number Diff line number Diff line change @@ -55,6 +55,20 @@ $ npm i @litert/loader@dev --save
5555<
script src =
" https://cdn.jsdelivr.net/npm/@litert/[email protected] /dist/index.min.js" ></
script >
5656```
5757
58+ 代码提示需要在“tsconfig.json”中添加:
59+
60+ ``` json
61+ {
62+ "compilerOptions" : {
63+ ...
64+ "typeRoots" : [
65+ " ./node_modules/@types" ,
66+ " ./node_modules/@litert/loader"
67+ ]
68+ }
69+ }
70+ ```
71+
5872``` typescript
5973// 所有操作请写在 ready 回调函数当中。
6074loader .ready (function () {
Original file line number Diff line number Diff line change @@ -55,6 +55,20 @@ $ npm i @litert/loader@dev --save
5555<
script src =
" https://cdn.jsdelivr.net/npm/@litert/[email protected] /dist/index.min.js" ></
script >
5656```
5757
58+ 代碼提示需要在「tsconfig.json」中添加:
59+
60+ ``` json
61+ {
62+ "compilerOptions" : {
63+ ...
64+ "typeRoots" : [
65+ " ./node_modules/@types" ,
66+ " ./node_modules/@litert/loader"
67+ ]
68+ }
69+ }
70+ ```
71+
5872``` typescript
5973// 所有操作請寫在回呼函數當中。
6074loader .ready (function () {
You can’t perform that action at this time.
0 commit comments