UNPKG

yarn-spinner-runner-ts

Version:

TypeScript parser, compiler, and runtime for Yarn Spinner 3.x with React adapter [NPM package](https://www.npmjs.com/package/yarn-spinner-runner-ts)

10 lines (9 loc) 304 B
import type { YarnDocument } from "../model/ast"; import type { IRProgram } from "./ir"; export interface CompileOptions { generateOnceIds?: (ctx: { node: string; index: number; }) => string; } export declare function compile(doc: YarnDocument, opts?: CompileOptions): IRProgram;