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
11 lines
443 B
Plaintext
11 lines
443 B
Plaintext
import type { TSchema, SchemaOptions } from '../schema/index';
|
|
import { Kind } from '../symbols/index';
|
|
export type TLiteralValue = boolean | number | string;
|
|
export interface TLiteral<T extends TLiteralValue = TLiteralValue> extends TSchema {
|
|
[Kind]: 'Literal';
|
|
static: T;
|
|
const: T;
|
|
}
|
|
/** `[Json]` Creates a Literal type */
|
|
export declare function Literal<T extends TLiteralValue>(value: T, options?: SchemaOptions): TLiteral<T>;
|