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
看到目前代码里ReturnState 和 ActionType 都用Conditional Types 获取函数的返回值,其实TypeScript 2.8 已经内置了一个利用Conditional Types获取函数返回值的类型 ReturnType,可以用在ReturnState和ActionType的定义里简化代码。 🙂
The text was updated successfully, but these errors were encountered:
No branches or pull requests
看到目前代码里ReturnState 和 ActionType 都用Conditional Types 获取函数的返回值,其实TypeScript 2.8 已经内置了一个利用Conditional Types获取函数返回值的类型 ReturnType,可以用在ReturnState和ActionType的定义里简化代码。 🙂
The text was updated successfully, but these errors were encountered: