Skip to content

Commit ea9e97b

Browse files
committed
2 parents fbe4771 + 5164de1 commit ea9e97b

File tree

4 files changed

+36
-31
lines changed

4 files changed

+36
-31
lines changed

package-lock.json

Lines changed: 27 additions & 27 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
},
2323
"devDependencies": {
2424
"@types/node": "^20.10.0",
25-
"@vscode-elements/elements": "1.0.1",
25+
"@vscode-elements/elements": "^1.1.0",
2626
"@vscode/codicons": "^0.0.35",
2727
"custom-elements-manifest": "^2.0.0",
2828
"prettier": "^3.1.0",

src/content/api/tree.mdx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,6 @@ import ApiDocs from '@components/ApiDocs/ApiDocs.astro';
1010
## Custom types
1111

1212
```typescript
13-
type IconType = 'themeicon' | 'image';
14-
1513
type IconVariant = 'branch' | 'leaf' | 'open';
1614

1715
export interface TreeItemIconConfig {
@@ -94,4 +92,4 @@ interface SelectEventDetail {
9492
* `data[1].subItems[2].subItems[3]` */
9593
path: string; // ex.: 0/0/1
9694
}
97-
```
95+
```

src/content/articles/getting-started.mdx

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,13 @@ tabs.addEventListener('vsc-tabs-select', () => {
100100
});
101101
```
102102

103+
Most of the components use native events if possible. When a component has a custom event, the event
104+
is exported as a TypeScript type. All exported events are descendants of the `CustomEvent` class.
105+
106+
```typescript
107+
import type { VscTabsSelectEvent } from "@vscode-elements/elements/dist/vscode-tabs/vscode-tabs";
108+
```
109+
103110
### Slots
104111

105112
Slots are used to accept HTML content.

0 commit comments

Comments
 (0)