UNPKG

hackmud-script-manager

Version:

Script manager for game hackmud, with minification, TypeScript support, and player script type definition generation.

10 lines (9 loc) 336 B
import type { LaxPartial } from "@samual/lib"; export type PreprocessOptions = LaxPartial<{ uniqueId: string; }>; /** @param code source code for preprocessing * @param options {@link PreprocessOptions details} */ export declare function preprocess(code: string, { uniqueId }?: PreprocessOptions): Promise<{ code: string; }>;