Skip to content

Commit

Permalink
fix(ts): global component types, fix #146
Browse files Browse the repository at this point in the history
  • Loading branch information
Akryum committed Jun 22, 2022
1 parent 26365c1 commit fbec6bf
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion docs/guide/getting-started.md
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ You can specify additional CLI options like `--port`. For a full list of CLI opt
To enable the global components types in your project, create an `env.d.ts` file at the root of your project if it doesn't already exist.

```ts
/// <reference types="histoire" />
/// <reference types="histoire/vue" />
```

And add it in the `include` field of your `tsconfig.json`.
Expand Down
2 changes: 0 additions & 2 deletions packages/histoire/index.d.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1 @@
import './src/components'

export * from './dist/node/index'
1 change: 1 addition & 0 deletions packages/histoire/vue.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
import '@histoire/plugin-vue/components'

0 comments on commit fbec6bf

Please sign in to comment.