dudykr / stc

Speedy TypeScript type checker
https://stc.dudy.dev
Apache License 2.0
5.78k stars 165 forks source link

Index signature with string indexer should be assignable to one with numeric indexer #594

Closed kdy1 closed 1 year ago

kdy1 commented 1 year ago

https://github.com/dudykr/stc/blob/273356f921c6152b5a45c41527923a86361ebe13/crates/stc_ts_type_checker/tests/conformance/types/typeRelationships/typeInference/indexSignatureTypeInference.ts#L1-L17

At the code above, line 17 should pass. i.e. StringMap<Function> is assignable to NumberMap<Function>.

YoniFeng commented 1 year ago

issue can be closed

kdy1 commented 1 year ago

Thank you!