react-spring/web + children not defined

@react-spring/web + children not defined

This is a reported bug in @react-spring/web that is still open at the time of writing.

Deftunk recommends creating a custom.d.ts file and overriding the type:

javascript 复制代码
import reactSpring from "@react-spring/web";
declare module "@react-spring/web" {
  const animated = {
    children: React.ReactNode,
    ...reactSpring.animated,
  };
}
相关推荐
jump_jump2 分钟前
Ripple:一个现代的响应式 UI 框架
前端·javascript·前端框架
用户9047066835710 分钟前
Nuxt css 如何写?
前端
神秘的猪头10 分钟前
🎨 CSS 这种“烂大街”的技术,怎么在 React 和 Vue 里玩出花来?—— 模块化 CSS 深度避坑指南
css·vue.js·react.js
夏天想11 分钟前
element-plus的输入数字组件el-input-number 显示了 加减按钮(+ -) 和 小三角箭头(上下箭头),怎么去掉+,-或者箭头
前端·javascript·vue.js
0思必得013 分钟前
[Web自动化] Selenium基础介绍
前端·python·selenium·自动化·web自动化
廋到被风吹走14 分钟前
【Spring】Spring Boot Starter设计:公司级监控SDK实战指南
java·spring boot·spring
Filotimo_15 分钟前
前端.d.ts文件作用
前端
进击的野人15 分钟前
Vue 3 响应式数据解构:toRef 与 toRefs 的深度解析
前端·vue.js·前端框架
ohyeah16 分钟前
CSS 作用域隔离实战:React、Vue 与 Styled Components 的三种范式
前端
二哈喇子!32 分钟前
前端HTML、CSS、JS、VUE 汇总
开发语言·前端