generated from unplugin/unplugin-starter
-
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: improve and document typescript support (#81)
* feat: improve and document typescript support * fix linter and build * fix example storybook
- Loading branch information
1 parent
c3b87e4
commit 84d9eb7
Showing
4 changed files
with
38 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
<script lang="ts" setup> | ||
import MyButton from '../components/Button.vue' | ||
import type { Story, Stories } from '../../../../src/types' | ||
</script> | ||
|
||
<template> | ||
<Stories | ||
:component="MyButton" | ||
title="Tests/Explicit types" | ||
> | ||
<Story title="Default"> | ||
<MyButton label="Button" /> | ||
</Story> | ||
</Stories> | ||
</template> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
export type { Stories, Story } from './components' | ||
|
||
export interface Options { | ||
// define your plugin options here | ||
} |