import { isoly } from "isoly" import { isly } from "isly" export interface Issue { link: string status: "closed" | "open" } export namespace Issue { export const type = isly.object({ link: isly.string(), status: isly.string(["closed", "open"]), }) export interface Creatable { type: string currency: isoly.Currency resource?: string issue: Issue } export namespace Creatable { export const type = isly.object({ type: isly.string(), currency: isly.fromIs("Currency", isoly.Currency.is), resource: isly.string().optional(), issue: Issue.type, }) } }