mirror of
https://github.com/swc-project/swc.git
synced 2024-12-23 05:32:09 +03:00
21 lines
513 B
TypeScript
21 lines
513 B
TypeScript
|
// Loaded from https://raw.githubusercontent.com/colinhacks/zod/654680afc2ede388e71e09104eac5a0088fe3207/deno/lib/types/never.ts
|
||
|
|
||
|
|
||
|
import { ZodTypes } from "../ZodTypes.ts";
|
||
|
import { ZodType, ZodTypeDef } from "./base.ts";
|
||
|
|
||
|
export interface ZodNeverDef extends ZodTypeDef {
|
||
|
t: ZodTypes.never;
|
||
|
}
|
||
|
|
||
|
export class ZodNever extends ZodType<never, ZodNeverDef> {
|
||
|
__class = "ZodNever";
|
||
|
toJSON = () => this._def;
|
||
|
|
||
|
static create = (): ZodNever => {
|
||
|
return new ZodNever({
|
||
|
t: ZodTypes.never,
|
||
|
});
|
||
|
};
|
||
|
}
|