UNPKG

hackmud-script-manager

Version:

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

19 lines (18 loc) 929 B
import type { File } from "@babel/types"; import type { LaxPartial } from "@samual/lib"; type MinifyOptions = LaxPartial<{ /** 11 a-z 0-9 characters */ uniqueId: string; /** whether to mangle function and class names (defaults to `false`) */ mangleNames: boolean; /** when set to `true` forces use of quine cheats * * when set to `false` forces quine cheats not to be used * * when left unset or set to `undefined`, automatically uses or doesn't use quine cheats based on character count */ forceQuineCheats: boolean; /** the comment inserted after the function signature */ autocomplete: string; }>; /** @param file babel ast node representing a file containing transformed code * @param options {@link MinifyOptions details} */ export declare function minify(file: File, { uniqueId, mangleNames, forceQuineCheats, autocomplete }?: MinifyOptions): Promise<string>; export {};