stc
stc copied to clipboard
Speedy TypeScript type checker
- [ ] Class members - [ ] Statements - [ ] Object literals - [ ] Nested items
**Description:** I'm still thinking about an ideal API for LSP
https://github.com/dudykr/stc/blob/41b76af273b27a172b6f8e50d7ea36f1bf0eda46/crates/stc_ts_type_checker/tests/conformance/es6/arrowFunction/emitArrowFunctionThisCapturingES6.ts#L2-L8 Should fail with `globalThis has no property named 'name'` but currently it fails with an assignment failure. ``` thread 'conformance::es6::arrowFunction::emitArrowFunctionThisCapturingES6.ts' panicked at ' ============================================================ TS2322 x context: | lhs...
https://github.com/dudykr/stc/blob/083bb476624a6d5a7354ccdc774b30e107f75df0/crates/stc_ts_type_checker/tests/conformance/types/typeAliases/intrinsicTypes.ts#L49-L51 The assignment above should success
https://github.com/dudykr/stc/blob/083bb476624a6d5a7354ccdc774b30e107f75df0/crates/stc_ts_type_checker/tests/conformance/types/stringLiteral/stringLiteralTypesWithTemplateStrings02.ts#L5 This should success
# Problem We should not report `ImplicitAny` for https://github.com/dudykr/stc/blob/e503aa0dc7a553c054046cf64a6ff3d701a44f1b/crates/stc_ts_type_checker/tests/conformance/types/contextualTypes/methodDeclarations/contextuallyTypedClassExpressionMethodDeclaration01.ts#L16-L25 # Solution (guess) We should pass type annotations to class expressions and use `access_property` to provide type annotations to class methods....
**Description:** This makes emitting identical error code to tsc easier. **Related issue:** - Closes https://github.com/dudykr/stc/issues/314.
`tsc` uses it, and `assign` should - Accept `report_errors` and report an error directly if required - Return ternary. - Be renamed to `is_related_to` --- This will make emitting identical...
When importing an interface, which was exported as the default and then exporting it, stc panics at the following block of code. It is likely related to all imports being...
**Description:** ```typescript class A { private foo: number, bar: number, } new A().bar ``` Causes panic in `tests/conformance/classes/members/privateNames/privateNamesInGenericClasses.ts` due to `not implemented: access to type elements using private name`