@bscotch/yy
Version:
Stringify, parse, read, and write GameMaker yy and yyp files.
59 lines • 1.94 kB
TypeScript
import { z } from 'zod';
export type yyParentSchema = z.infer<typeof yyParentSchema>;
export declare const yyParentSchema: z.ZodDefault<z.ZodObject<{
name: z.ZodString;
path: z.ZodString;
}, "strip", z.ZodTypeAny, {
path: string;
name: string;
}, {
path: string;
name: string;
}>>;
export type YyBase = z.infer<typeof yyBaseSchema>;
export declare const yyBaseSchema: z.ZodObject<{
"%Name": z.ZodOptional<z.ZodString>;
ConfigValues: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodString>>>;
name: z.ZodString;
resourceType: z.ZodString;
tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
/**
* Parent folder
*/
parent: z.ZodDefault<z.ZodObject<{
name: z.ZodString;
path: z.ZodString;
}, "strip", z.ZodTypeAny, {
path: string;
name: string;
}, {
path: string;
name: string;
}>>;
resourceVersion: z.ZodDefault<z.ZodString>;
}, z.UnknownKeysParam, z.ZodTypeAny, {
name: string;
resourceType: string;
parent: {
path: string;
name: string;
};
resourceVersion: string;
"%Name"?: string | undefined;
ConfigValues?: Record<string, Record<string, string>> | undefined;
tags?: string[] | undefined;
}, {
name: string;
resourceType: string;
"%Name"?: string | undefined;
ConfigValues?: Record<string, Record<string, string>> | undefined;
tags?: string[] | undefined;
parent?: {
path: string;
name: string;
} | undefined;
resourceVersion?: string | undefined;
}>;
export type YyResourceType = (typeof yyResourceTypes)[number];
export declare const yyResourceTypes: readonly ["animcurves", "extensions", "fonts", "notes", "objects", "particles", "paths", "rooms", "roomui", "extensions", "scripts", "sequences", "shaders", "sounds", "sprites", "tilesets", "timelines"];
//# sourceMappingURL=YyBase.d.ts.map