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,
  };
}
相关推荐
小七不懂前端2 分钟前
我用 NestJS + Vue3 + Prisma + PostgreSQL 打造了一个企业级 sass 多租户平台
前端·vue.js·后端
晚星star6 分钟前
2.2 Node的模块实现
前端·node.js
zYear7 分钟前
Three.js 入门指南:揭开 3D 网页的魔法面纱
前端
Crystal3288 分钟前
图片懒加载
前端·javascript·代码规范
Revol_C24 分钟前
开箱即用!轻量级轮询方案,支持同步获取轮询结果!
前端·javascript·设计模式
38242782737 分钟前
python:正则表达式
前端·python·正则表达式
用户479492835691544 分钟前
我是怎么把模型回复用tts播放的更自然的
前端
JS_GGbond1 小时前
前端崩溃监控:给网页戴上“生命体征监测仪”
前端
俊劫1 小时前
AI 编码技巧篇(内部分享)
前端·javascript·ai编程
Maxkim1 小时前
一文读懂 Chrome CRX📦:你需要了解的核心知识点
前端·前端工程化