UNPKG

civ7-modding-tools

Version:
20 lines (15 loc) 464 B
import { TObjectValues } from "../types"; import { KIND } from "../constants"; import { BaseNode } from "./BaseNode"; export type TTypeNode = Pick<TypeNode, "type" | "kind" >; export class TypeNode extends BaseNode<TTypeNode> { type: string | null = 'TYPE'; kind: TObjectValues<typeof KIND> | null = KIND.CONSTRUCTIBLE; constructor(payload: Partial<TTypeNode> = {}) { super(); this.fill(payload); } }