diff --git a/nodejs/index.d.ts b/nodejs/index.d.ts new file mode 100644 index 0000000..5597888 --- /dev/null +++ b/nodejs/index.d.ts @@ -0,0 +1,35 @@ +export type Cfg = { __doNotUseCfgDirectly: string & { __itIsANapiExternalValue: never } }; + +/** + * Creates configuration that can be passed to minification functions to change the minification approach. + * The value returned is an [external](https://nodejs.org/api/n-api.html#n_api_napi_create_external) value with typeof `object` and prototype `null`; it does not have any properties, and should only be used as arguments to minify functions. + * + * @param options - Configurable minifier settings to use when this configuration is passed to a minify function + * @returns An opaque value that can be passed to minify functions + */ +export function createConfiguration (options: { + /** + * If enabled, content in `