EnumTypes<T>: {
    [EnumName in keyof AllEnumTypesRecursively<T>]: {
        values: (() => AllEnumTypesRecursively<T>[EnumName]["type"][]);
    }
}

The utility type that is used to infer the type (interface) of the generated client.enums property.

Type Parameters

Example

// The schema:
{
TodoStatus: a.enum(['Planned' | 'InProgress' | 'Completed']),
}

// The inferred interface of the `client.enums`:
{
TodoStatus: {
values: () => Array<'Planned' | 'InProgress' | 'Completed'>;
}
}