UNPKG

@cuppachino/type-space

Version:

A collection of type utilities for TypeScript.

11 lines (10 loc) 256 B
/** * A record with unknown values. This is useful for accepting any type of object * safely. * * @example * ``` * declare function makeBar<F extends UnknownRecord>(foo: F): Bar<F> * ``` */ export type UnknownRecord = Record<PropertyKey, unknown>;