Comments (3)
As a quick temporary workaround one can add a d.ts file to do module augmentation like that:
import '@storybook/react';
import { ReactNode } from 'react';
declare module '@storybook/react' {
interface Story {
addWithJSX(kind: string, fn: () => ReactNode, options: object): Story;
}
}
from addon-jsx.
Typings issues would belong to https://github.com/DefinitelyTyped/DefinitelyTyped
Looks like someone solved it for you:
DefinitelyTyped/DefinitelyTyped#29071
from addon-jsx.
Solved via official types package, closing.
from addon-jsx.
Related Issues (20)
- Docs are unclear HOT 1
- JSX formatting for component props HOT 2
- Actions show up as extra noise in JSX panel HOT 3
- Default Props are included in output HOT 1
- Allow JSX customization (boolean props, etc) HOT 2
- Is it possible to change the theme for a 'black' version ?
- Is it possible to change the theme for a 'black' version ?
- [Feature] Target content when used as a global decorator HOT 2
- [Bug] Copy Button Moves on Scroll HOT 2
- Is there an option to hide function implementation from props?
- [Bug] React 17 peer dependency HOT 4
- Skip not applied to Storybook Docs story source
- [Bug] Not enough children to skip elements for stories without children HOT 1
- [Bug] Not all constituents of type 'string | ClientApiReturnFn<StoryFnReactReturnType>' are callable. Type 'string' has no call signatures.
- [Bug] JSX tab remains visible when addon is disabled HOT 1
- [Bug] Addon not working correctly with Angular?
- [Bug] OnBeforeRender option has no effect whatsoever on Angular Storybook
- [Security] Critical Warnings on react-dev-utils that depends on immer
- [Bug] An issue when using addon-jsx globally
- [Improve] Upgrade to storybook 7 HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from addon-jsx.