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
Implement #138 w/in ts-reset
When using code like
const isReady = Boolean(downloadURL); return isReady ? <LinkButton fullWidth href={downloadURL} download={fileName}> Download </LinkButton> : null;
downloadURL is considered falsey still in the ternary. With this change to global types:
downloadURL
interface BooleanConstructor { // eslint-disable-next-line @typescript-eslint/no-wrapper-object-types new (value?: unknown): Boolean; <T>(value?: T): value is TSReset.NonFalsy<T>; // eslint-disable-next-line @typescript-eslint/no-wrapper-object-types readonly prototype: Boolean; }
It typechecks fine
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Implement #138 w/in ts-reset
When using code like
downloadURL
is considered falsey still in the ternary. With this change to global types:It typechecks fine
The text was updated successfully, but these errors were encountered: