UNPKG

aran

Version:
21 lines (19 loc) 719 B
import type { GetDefault } from "../util/util.d.ts"; /** * Configuration object for `setup`. */ export type Config<param extends { JavaScriptIdentifier?: string } = {}> = { /** * The global variable that refer to the global object. Only change this if * `globalThis` do not refer to the global object for some reason. Must be a * valid JavaScript identifier. * @defaultValue `"globalThis"` */ global_object_variable: GetDefault<param, "JavaScriptIdentifier", string>; /** * The global variable for holding the intrinsic record. Can be any arbritrary * string. * @defaultValue `"_ARAN_INTRINSIC_"` */ intrinsic_global_variable: GetDefault<param, "JavaScriptIdentifier", string>; };