UNPKG

@codethread/tstl-validate

Version:

Fork and adaptation of valibot for use in typescript-to-lua

7 lines (6 loc) 288 B
/** @noSelfInFile */ import type { ObjectSchema, ObjectSchemaAsync } from '../../schemas/index'; /** * Object keys type. */ export type ObjectKeys<TObjectSchema extends ObjectSchema<any> | ObjectSchemaAsync<any>> = [keyof TObjectSchema['object'], ...(keyof TObjectSchema['object'])[]];