haystack-codegen
Version:
Project Haystack Core code generation tools
13 lines (12 loc) • 339 B
TypeScript
import { Node } from './Node';
/**
* Generates a type guard for a type.
*/
export declare class TypeGuardNode implements Node {
readonly def: string;
readonly name: string;
readonly newLines = 1;
readonly types: string[];
constructor(def: string, name: string);
generateCode(out: (code: string) => void): void;
}