Skip to content
This repository was archived by the owner on Sep 11, 2025. It is now read-only.

Commit b145eb6

Browse files
committed
Update README.
1 parent 09302ae commit b145eb6

File tree

3 files changed

+42
-0
lines changed

3 files changed

+42
-0
lines changed

README.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff 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.
6175
loader.ready(function() {

doc/README.sc.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff 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 回调函数当中。
6074
loader.ready(function() {

doc/README.tc.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff 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
// 所有操作請寫在回呼函數當中。
6074
loader.ready(function() {

0 commit comments

Comments
 (0)