aotds-docks/src/lib/store/ship/reqs.ts

12 lines
282 B
TypeScript

import type { FromSchema, JSONSchema } from "json-schema-to-ts";
import * as j from "json-schema-shorthand";
import jsc from "$lib/jsc";
export const reqsSchema = j.object({
cost: "integer",
mass: "integer",
} as const);
export type Reqs = FromSchema<typeof reqsSchema>;