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
In version 1.0.11, Objects.Omit and Objects.Pick make all properties required. It also ignores readonly and make everything writable
1.0.11
Objects.Omit
Objects.Pick
readonly
https://codesandbox.io/s/typescript-playground-export-forked-5y6rtd
import { Pipe, Objects, Identity } from "hotscript"; type HasNoOptionals1 = Pipe< // ^? { readonly a: string; b: number; c?: boolean; d?: number; }, [Objects.Omit<"a">] >; type HasNoOptionals2 = Pipe< // ^? { readonly a: string; b: number; c?: boolean; d?: number; }, [Objects.Omit<"">] >; type HasNoOptionals3 = Pipe< // ^? { readonly a: string; b: number; c?: boolean; d?: number; }, [Objects.Pick<"a" | "c">] >; type HasNoOptionals4 = Pipe< // ^? { readonly a: string; b: number; c?: boolean; d?: number; }, [Objects.Pick<"a" | "b" | "c" | "d">] >; type WithIdentity = Pipe< // ^? { readonly a: string; b: number; c?: boolean; d?: number; }, [Identity] >;
export {};
{ "compilerOptions": { "strict": true, "noImplicitAny": true, "strictNullChecks": true, "strictFunctionTypes": true, "strictPropertyInitialization": true, "strictBindCallApply": true, "noImplicitThis": true, "noImplicitReturns": true, "alwaysStrict": true, "esModuleInterop": true, "declaration": true, "target": "ES2017", "jsx": "react", "module": "ESNext", "moduleResolution": "node" } }
Playground Link: Provided
The text was updated successfully, but these errors were encountered:
No branches or pull requests
In version
1.0.11
,Objects.Omit
andObjects.Pick
make all properties required. It also ignoresreadonly
and make everything writablehttps://codesandbox.io/s/typescript-playground-export-forked-5y6rtd
Output
Compiler Options
Playground Link: Provided
The text was updated successfully, but these errors were encountered: