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,
  };
}
相关推荐
沐墨染3 分钟前
黑词分析与可疑对话挖掘组件的设计与实现
前端·elementui·数据挖掘·数据分析·vue·visual studio code
anOnion9 分钟前
构建无障碍组件之Disclosure Pattern
前端·html·交互设计
threerocks11 分钟前
前端将死,Agent 永生
前端·人工智能·ai编程
问道飞鱼1 小时前
【前端知识】Vite用法从入门到实战
前端·vite·项目构建
爱上妖精的尾巴1 小时前
8-10 WPS JSA 正则表达式:贪婪匹配
服务器·前端·javascript·正则表达式·wps·jsa
Java小混子2 小时前
OSS(对象存储)
spring
shadow fish2 小时前
react学习记录(三)
javascript·学习·react.js
Aliex_git2 小时前
浏览器 API 兼容性解决方案
前端·笔记·学习
工业甲酰苯胺2 小时前
spring-事务管理
数据库·sql·spring
独泪了无痕2 小时前
useStorage:本地数据持久化利器
前端·vue.js