@scalar/types
Version:
Types to work with Scalar packages
18 lines • 583 B
TypeScript
import { z } from 'zod';
/** Generates a default value */
export declare const nanoidSchema: z.ZodDefault<z.ZodString>;
/** UID format for objects */
export type Nanoid = z.infer<typeof nanoidSchema>;
/** All of our Zod brands for entities, used to brand nanoidSchemas. */
export type ENTITY_BRANDS = {
COLLECTION: 'collection';
COOKIE: 'cookie';
ENVIRONMENT: 'environment';
EXAMPLE: 'example';
OPERATION: 'operation';
SECURITY_SCHEME: 'securityScheme';
SERVER: 'server';
TAG: 'tag';
WORKSPACE: 'workspace';
};
//# sourceMappingURL=nanoid.d.ts.map