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
Let's take the following code has an example:
import type { PackageJson, SetRequired } from 'type-fest'; type PackageJsonVersion = PackageJson['version']; type PackageJsonVersionRequired = SetRequired<PackageJson, 'version'>['version'];
With [email protected] I get:
[email protected]
type PackageJsonVersion = string | undefined type PackageJsonVersionRequired = ((string | number | boolean | JsonObject | JsonValue[] | readonly JsonValue[]) & (string | number | boolean | JsonObject | JsonValue[] | readonly JsonValue[] | undefined)) | null
type PackageJsonVersion = string | undefined type PackageJsonVersionRequired = string
https://www.typescriptlang.org/play/?#code/JYWwDg9gTgLgBDAnmApnA3nACgQwMYDWOA5igFIDOEAdgDRwDKKMASigI4CuwUKAJnAC+cAGZQIIOAHIkqALQiUFGFIDcAWABQW2WlyES5KtQBqKKBWA04AXmz4ipSjQDaUgG7nLNKQF0Nmrr2Bk7GZhZW1GxcPPy2jMzR3Lx8ADz6jkY09B5ekVIAfG6eET7+QA
The text was updated successfully, but these errors were encountered:
This is related to index signatures, should be fixed with this PR.
Sorry, something went wrong.
Thanks a lot Fixed in 4.31.0.
No branches or pull requests
Bug description
Let's take the following code has an example:
received
With
[email protected]
I get:expected
With
[email protected]
I get:Repro
https://www.typescriptlang.org/play/?#code/JYWwDg9gTgLgBDAnmApnA3nACgQwMYDWOA5igFIDOEAdgDRwDKKMASigI4CuwUKAJnAC+cAGZQIIOAHIkqALQiUFGFIDcAWABQW2WlyES5KtQBqKKBWA04AXmz4ipSjQDaUgG7nLNKQF0Nmrr2Bk7GZhZW1GxcPPy2jMzR3Lx8ADz6jkY09B5ekVIAfG6eET7+QA
The text was updated successfully, but these errors were encountered: