@yokowasis/types-webcomponents 1.0.0 → 1.0.1

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.
Files changed (2) hide show
  1. package/README.md +33 -0
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -24,3 +24,36 @@ pnpm add -D @yokowasis/types-webcomponents
24
24
  ## Usage
25
25
 
26
26
  No runtime import is required. Ensure your `tsconfig.json` includes the package types (usually automatic under `node_modules`).
27
+
28
+ ## Use In IDE (VS Code)
29
+
30
+ 1. Install the package:
31
+
32
+ ```bash
33
+ npm install -D @yokowasis/types-webcomponents
34
+ ```
35
+
36
+ 2. Make sure TypeScript loads the package types.
37
+
38
+ Usually it works automatically. If not, add this to your `tsconfig.json`:
39
+
40
+ ```json
41
+ {
42
+ "compilerOptions": {
43
+ "types": ["@yokowasis/types-webcomponents"]
44
+ }
45
+ }
46
+ ```
47
+
48
+ 3. Restart TypeScript Server in VS Code:
49
+
50
+ - Open Command Palette
51
+ - Run: `TypeScript: Restart TS Server`
52
+
53
+ 4. If autocomplete is still missing, add a local declaration bridge (for example `src/app.d.ts`):
54
+
55
+ ```ts
56
+ /// <reference types="@yokowasis/types-webcomponents" />
57
+ ```
58
+
59
+ Then reload VS Code window.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yokowasis/types-webcomponents",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "description": "Type definitions for yokowasis webcomponents custom elements",
5
5
  "types": "index.d.ts",
6
6
  "files": [