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)

9 lines (8 loc) 373 B
import { YarnRunner, type RunnerOptions } from "../runtime/runner.js"; import type { IRProgram } from "../compile/ir.js"; import type { RuntimeResult } from "../runtime/results.js"; export declare function useYarnRunner(program: IRProgram, options: RunnerOptions): { result: RuntimeResult | null; advance: (optionIndex?: number) => void; runner: YarnRunner; };