pb.identity
v1.0.0
Published
Anonymise object types.
Downloads
95
Readme
identity
Installation
npm install pb.identity
Requirements
typescript@>=5.0.0
tsconfig.json > "compilerOptions" > { "strict": true }
API
Identity<T>
import type { Identity } from "pb.identity";
const value = Object.assign({ A: true }, { B: true });
// ^ { A: boolean } & { B: boolean }
type Result = Identity<typeof value>;
// ^ { A: boolean; B: boolean }