UNPKG

@schema-hub/zod-error-formatter

Version:

Simple and easy-to-understand zod error messages

6 lines 400 B
export type NonEmptyArray<Item> = readonly [Item, ...(readonly Item[])]; export declare function isNonEmptyArray<Item>(list: readonly Item[]): list is NonEmptyArray<Item>; export declare function mapTuple<Tuple extends readonly unknown[], MappedItem>(tuple: Tuple, mapItem: (item: Tuple[number]) => MappedItem): { [Key in keyof Tuple]: MappedItem; }; //# sourceMappingURL=non-empty-array.d.ts.map