You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
in your `index.html` to use a webxdc emulator and you are ready to
20
+
**develop and test your app in most browsers.**
17
21
18
22
Bundle your app using `./create-xdc.sh your-app-name`
19
23
and **send it to your friends** 🙂
@@ -23,6 +27,11 @@ and **send it to your friends** 🙂
23
27
24
28
## Further Hints and Troubleshooting
25
29
30
+
### Type-checking
31
+
32
+
If you want to have type-checking you can use [@webxdc/types](https://github.com/webxdc/webxdc-types/) package, check:
33
+
34
+
https://github.com/webxdc/webxdc-types/
26
35
27
36
### Limitations
28
37
@@ -34,24 +43,6 @@ bundle the app and test it in Delta Chat directly
34
43
where all peers get their own `localStorage`.
35
44
Alternatively, use the more advanced [webxdc-dev](https://github.com/webxdc/webxdc-dev) tool.
36
45
37
-
38
-
### Type-checking and completion
39
-
40
-
If you are using VSCode you can have autocompletion and type-checking even without using TypeScript by adding these two lines to your JavaScript source files:
41
-
42
-
```js
43
-
//@ts-check
44
-
/**@typedef{import('./webxdc').Webxdc}Webxdc*/
45
-
```
46
-
47
-
Without VSCode you need to install TypeScript and then run the check manually.
48
-
49
-
```sh
50
-
npm -g typescript
51
-
tsc --noEmit --allowJs --lib es2016,dom webxdc.js # to check if types and simulator are in sync
0 commit comments