dudykr / stc

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

feat: Support accessing nom primitive constraint of an empty object #1072

Closed sunrabbit123 closed 1 year ago

sunrabbit123 commented 1 year ago

Description:

function l<T extends {}, P extends keyof T>(s: string, tp: T[P]): void {
    tp = s;
}

BREAKING CHANGE:

Related issue (if exists):

github-actions[bot] commented 1 year ago

Thank you for the PR! Commit: 86b831f74f73cbc585ea0f0fa49c39cb6a5ccab0

Files to check

These are files which is affected by the current PR, but not reflected. If there's no file below this message, please ignore this message.

You can run ./scripts/auto-unignore.sh from crates/stc_ts_file_analyzer for typescript files, and ./scripts/check.sh from crates/stc_ts_type_checker for *.stats.rust-debug files.