npm install pb.identity
typescript@>=5.0.0
tsconfig.json > "compilerOptions" > { "strict": true }
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 }