Comments (3)
Hello @valoricDe, if you integrating with @fower/babel-preset-fower
, your index.d.ts
should be:
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
from fower.
I did I did. I created a sandbox to showcase: https://codesandbox.io/s/tender-meninsky-uxvqm
If you uncomment the import the error goes away
from fower.
I tried it with create-react-app, I found that we should name typing file with global.d.ts
, not index.d.ts
, see: https://github.com/forsigner/fower/tree/master/examples/example-cra, it works in vscode, nut not work in codesandbox .
from fower.
Related Issues (20)
- expo 工程引入 报错 HOT 4
- 希望可以支持vue3.x (Hope to Support Vue 3.x ) HOT 12
- Taro中产生大量内联样式 HOT 4
- 嵌套样式冲突 HOT 1
- 允许自定义 css 属性的名称 HOT 8
- @fower/taro的 Switch 组件 color样式在微信小程序无法覆盖 HOT 3
- [BUG] Taro-H5无法使用Fower HOT 1
- Taro H5 shadow原子不生效 HOT 4
- Taro H5 单位转换不正确
- Svelte Rollup waiting for changes forever HOT 1
- SvelteKit: any support for svelte kit? HOT 2
- Remax: @fower/remax的ts类型问题 HOT 3
- Taro中Space Between失效 HOT 3
- uniapp 打包app时会出现错误
- remax中的 web 模式p-10 w-160无效,微信小程序测试有效!
- 小程序中,有什么办法可以使用熟悉的px大小来开发吗? HOT 1
- 文档错别字 HOT 1
- 文档怎么没有中文了? HOT 2
- React Native flexWrap is not work
- setTheme自定义主题色
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 fower.