We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
如果给ts定义number list,装饰器定义varchar,在service是可以解析到变量有两种类型。 但是在model当前文件是解析不到的。 即使在上述支持的情况下,转换数据类型也是会被ts捕捉的,毕竟split不存在于number list中。 这种涉及序列化的场景,有什么好的解决方案吗,我看了案例中的转换,属于强转,感觉与any无异。
The text was updated successfully, but these errors were encountered:
其实最好的是数据库的字段类型,与Model声明的类型一致。
Sorry, something went wrong.
No branches or pull requests
如果给ts定义number list,装饰器定义varchar,在service是可以解析到变量有两种类型。


但是在model当前文件是解析不到的。
即使在上述支持的情况下,转换数据类型也是会被ts捕捉的,毕竟split不存在于number list中。
这种涉及序列化的场景,有什么好的解决方案吗,我看了案例中的转换,属于强转,感觉与any无异。
The text was updated successfully, but these errors were encountered: