@bscotch/yy
Version:
Stringify, parse, read, and write GameMaker yy and yyp files.
51 lines • 1.65 kB
TypeScript
import { z } from 'zod';
export type YyScript = z.infer<typeof yyScriptSchema>;
export declare const yyScriptSchema: z.ZodObject<z.objectUtil.extendShape<{
"%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: 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>;
}, {
isDnD: z.ZodDefault<z.ZodBoolean>;
isCompatibility: z.ZodDefault<z.ZodBoolean>;
resourceType: z.ZodDefault<z.ZodLiteral<"GMScript">>;
}>, z.UnknownKeysParam, z.ZodTypeAny, {
name: string;
resourceType: "GMScript";
parent: {
path: string;
name: string;
};
resourceVersion: string;
isDnD: boolean;
isCompatibility: boolean;
"%Name"?: string | undefined;
ConfigValues?: Record<string, Record<string, string>> | undefined;
tags?: string[] | undefined;
}, {
name: string;
"%Name"?: string | undefined;
ConfigValues?: Record<string, Record<string, string>> | undefined;
resourceType?: "GMScript" | undefined;
tags?: string[] | undefined;
parent?: {
path: string;
name: string;
} | undefined;
resourceVersion?: string | undefined;
isDnD?: boolean | undefined;
isCompatibility?: boolean | undefined;
}>;
//# sourceMappingURL=YyScript.d.ts.map