webxdc-types
Advanced tools
Comparing version 1.0.0 to 1.0.1
{ | ||
"name": "webxdc-types", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "TypeScript type definitions for webxdc", | ||
@@ -24,3 +24,4 @@ "homepage": "https://github.com/webxdc/webxdc-types#readme", | ||
"files": [ | ||
"./*.d.ts" | ||
"./*.d.ts", | ||
"./*.js" | ||
], | ||
@@ -27,0 +28,0 @@ "scripts": { |
@@ -137,1 +137,18 @@ # Types for webxdc | ||
</details> | ||
<details> | ||
<summary> | ||
usage without package manager (npm, yarn, pnpm and so on.) | ||
</summary> | ||
Copy `global.d.ts` and `webxdc.d.ts` files into your project and use one of the methods above, adjusting the import path acordingly. | ||
```js | ||
/** @typedef {import('./global')} */ | ||
/** @typedef {import('./webxdc')} */ | ||
``` | ||
You can also combine the two files if you have basic knowledge of typescript. | ||
</details> |
10613
7
153