Skip to content
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

解决一下严格模式问题 #610

Open
TayeShi opened this issue Jan 28, 2023 · 0 comments
Open

解决一下严格模式问题 #610

TayeShi opened this issue Jan 28, 2023 · 0 comments

Comments

@TayeShi
Copy link

TayeShi commented Jan 28, 2023

当项目中tsconfig.json开启严格模式 "strict": true 的时候,
引入的pinus相关的ts文件也会报相关的语法错误。

无法通过exclude或者skipLibCheck等方式解决。
查了下好像是如果直接引入的是ts文件,则无法排除。如果是.d.ts才会有作用
microsoft/TypeScript#41883

处理一下pinus相关项目中,严格模式语法问题。
不然工程项目开启严格模式,pinus代码会跟着一起报错。

不是大问题不影响使用,但希望能解决一下

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants