Exactify<O>: {
    [P in keyof O as string extends P
        ? never
        : number extends P
            ? never
            : symbol extends P
                ? never
                : P]: O[P]
}

Strips unspecified properties like [x: string]: unknown from Record types.

Type Parameters

  • O extends object

    The Record type.

The Record type with only specified properties.