-
Notifications
You must be signed in to change notification settings - Fork 71
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Add type definition for blocks.js (on root)
<#156> `storybook-addon-designs/blocks` was missing `.d.ts` file, so importing the file caused a type error. ``` Cannot find module 'storybook-addon-designs/blocks' or its corresponding type declarations. ``` fix #156
- Loading branch information
Showing
5 changed files
with
39 additions
and
1 deletion.
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
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,22 @@ | ||
import React from 'react' | ||
import { Figma } from 'storybook-addon-designs/blocks' | ||
|
||
export default { | ||
title: 'Tests/Issues/#156', | ||
parameters: { | ||
docs: { | ||
page: () => ( | ||
<div> | ||
<a href="https://github.com/pocka/storybook-addon-designs/discussions/155"> | ||
Original discussion | ||
</a> | ||
<Figma url="https://www.figma.com/file/Klm6pxIZSaJFiOMX5FpTul9F/storybook-addon-designs-sample" /> | ||
</div> | ||
), | ||
}, | ||
}, | ||
} | ||
|
||
const Template = () => <button>Button</button> | ||
|
||
export const dummy = Template.bind({}) |
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,8 @@ | ||
{ | ||
"compilerOptions": { | ||
"jsx": "react", | ||
"esModuleInterop": true, | ||
"strict": true, | ||
"allowJs": false | ||
} | ||
} |
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 @@ | ||
export * from './esm/blocks' |