-
Notifications
You must be signed in to change notification settings - Fork 32
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Typings with babel #8
Comments
Hello @valoricDe, if you integrating with import { AtomicProps } from '@fower/types';
declare module 'react' {
interface HTMLAttributes<T> extends AtomicProps {}
} and see: https://fower.vercel.app/docs/use-with-react#use-in-html-elements |
I did I did. I created a sandbox to showcase: https://codesandbox.io/s/tender-meninsky-uxvqm |
I tried it with create-react-app, I found that we should name typing file with |
Hi @forsigner I'm integrating fower into my project and would like to use the babel preset approach.
I noticed that the typings themself were not working as described in the docs as it seems that it does not pickup all AtomicProps interface declarations.
I added
import { Box } from "@fower/react"
toindex.d.ts
which in turn referencesmaybe it is necessary to reference these types in @fower/types as well?
The text was updated successfully, but these errors were encountered: