3 ms·
That assumes all promise-generating code can be and is properly annotated, though.
by masklinn 5y ago
That assumes all promise-generating code can be and is properly annotated, though.
- yunyu 5y agoTypescript will cover this!
- masklinn 5y agoTypescript lets you call into un-annotated libraries or annotate things as `any` or whatever.
- tekknik 5y agoYou can cover this with eslint: https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/no-unsafe-assignment.md https://github.com/typescript-eslint/typescript-eslint/blob/...