Build NapCat Artifacts / Windows Loader Test (push) Canceled after 0s
Build NapCat Artifacts / Type Check & Test (push) Canceled after 0s
Build NapCat Artifacts / Build NapCat.Framework (push) Canceled after 0s
Build NapCat Artifacts / Build NapCat.Shell (push) Canceled after 0s
7 lines
411 B
Plaintext
7 lines
411 B
Plaintext
import type { TSchema, SchemaOptions } from '../schema/index';
|
|
import { type TNever } from '../never/index';
|
|
import type { TUnion } from './union-type';
|
|
export type Union<T extends TSchema[]> = (T extends [] ? TNever : T extends [TSchema] ? T[0] : TUnion<T>);
|
|
/** `[Json]` Creates a Union type */
|
|
export declare function Union<Types extends TSchema[]>(types: [...Types], options?: SchemaOptions): Union<Types>;
|