@bscotch/stitch-config
Version:
Schemas and utilities for the stitch.config.json file.
60 lines • 3.1 kB
TypeScript
import { z } from 'zod';
export declare const stitchConfigFilename = "stitch.config.json";
/**
* Workaround for Zod4 Record<string,string> failing
* when a field name matches "constructor"
* (See https://github.com/colinhacks/zod/issues/5066)
*/
export type PermissiveStringRecord = z.infer<typeof permissiveStringRecord>;
export declare const permissiveStringRecord: z.ZodObject<{}, z.core.$catchall<z.ZodString>>;
export declare const jsonSchemaUrl = "https://raw.githubusercontent.com/bscotch/stitch/develop/packages/config/schemas/stitch.config.schema.json";
export type NewSoundDefaults = z.infer<typeof newSoundDefaultsSchema>;
export declare const newSoundDefaultsSchema: z.ZodObject<{
mono: z.ZodOptional<z.ZodBoolean>;
}, z.core.$strip>;
export type GameConsoleLineStyle = z.infer<typeof gameConsoleLineStyleSchema>;
export declare const gameConsoleLineStyleSchema: z.ZodObject<{
base: z.ZodOptional<z.ZodString>;
description: z.ZodOptional<z.ZodString>;
pattern: z.ZodString;
caseSensitive: z.ZodOptional<z.ZodBoolean>;
styles: z.ZodOptional<z.ZodObject<{}, z.core.$catchall<z.ZodString>>>;
}, z.core.$loose>;
export type GameConsoleStyle = z.infer<typeof gameConsoleStyleSchema>;
export declare const gameConsoleStyleSchema: z.ZodObject<{
base: z.ZodOptional<z.ZodString>;
lines: z.ZodOptional<z.ZodArray<z.ZodObject<{
base: z.ZodOptional<z.ZodString>;
description: z.ZodOptional<z.ZodString>;
pattern: z.ZodString;
caseSensitive: z.ZodOptional<z.ZodBoolean>;
styles: z.ZodOptional<z.ZodObject<{}, z.core.$catchall<z.ZodString>>>;
}, z.core.$loose>>>;
}, z.core.$loose>;
export type StitchConfig = z.infer<typeof stitchConfigSchema>;
export declare const stitchConfigSchema: z.ZodObject<{
$schema: z.ZodDefault<z.ZodOptional<z.ZodLiteral<"https://raw.githubusercontent.com/bscotch/stitch/develop/packages/config/schemas/stitch.config.schema.json">>>;
textureGroupAssignments: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
audioGroupAssignments: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
runtimeVersion: z.ZodOptional<z.ZodString>;
newSpriteRules: z.ZodOptional<z.ZodObject<{
allowedNames: z.ZodOptional<z.ZodArray<z.ZodString>>;
}, z.core.$loose>>;
newSoundRules: z.ZodOptional<z.ZodObject<{
allowedNames: z.ZodOptional<z.ZodArray<z.ZodString>>;
defaults: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
mono: z.ZodOptional<z.ZodBoolean>;
}, z.core.$strip>>>;
}, z.core.$loose>>;
gameConsoleStyle: z.ZodOptional<z.ZodObject<{
base: z.ZodOptional<z.ZodString>;
lines: z.ZodOptional<z.ZodArray<z.ZodObject<{
base: z.ZodOptional<z.ZodString>;
description: z.ZodOptional<z.ZodString>;
pattern: z.ZodString;
caseSensitive: z.ZodOptional<z.ZodBoolean>;
styles: z.ZodOptional<z.ZodObject<{}, z.core.$catchall<z.ZodString>>>;
}, z.core.$loose>>>;
}, z.core.$loose>>;
}, z.core.$loose>;
//# sourceMappingURL=schema.d.ts.map