Skip to content

Commit

Permalink
chore: ✏️ update binding types
Browse files Browse the repository at this point in the history
  • Loading branch information
stormslowly committed Jan 4, 2024
1 parent f164662 commit 9f95295
Showing 1 changed file with 46 additions and 42 deletions.
88 changes: 46 additions & 42 deletions crates/node/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,14 +33,15 @@ export interface BuildParams {
alias?: Record<string, string>;
extensions?: string[];
};
manifest?: boolean;
manifestConfig?: {
fileName: string;
basePath: string;
};
manifest?:
| false
| {
fileName: string;
basePath: string;
};
mode?: 'development' | 'production';
define?: Record<string, string>;
devtool?: 'source-map' | 'inline-source-map' | 'none';
devtool?: false | 'source-map' | 'inline-source-map';
externals?: Record<
string,
| string
Expand All @@ -58,29 +59,28 @@ export interface BuildParams {
}
>;
copy?: string[];
codeSplitting?: 'auto' | 'none';
codeSplitting?: false | 'auto';
providers?: Record<string, string[]>;
publicPath?: string;
inlineLimit?: number;
targets?: Record<string, number>;
platform?: 'node' | 'browser';
hmr?: boolean;
hmrPort?: string;
hmrHost?: string;
px2rem?: boolean;
px2remConfig?: {
root: number;
propBlackList: string[];
propWhiteList: string[];
selectorBlackList: string[];
selectorWhiteList: string[];
};
hmr?: false | { host?: string; port?: number };
px2rem?:
| false
| {
root?: number;
propBlackList?: string[];
propWhiteList?: string[];
selectorBlackList?: string[];
selectorWhiteList?: string[];
};
stats?: boolean;
hash?: boolean;
autoCSSModules?: boolean;
ignoreCSSParserErrors?: boolean;
dynamicImportToRequire?: boolean;
umd?: string;
umd?: false | string;
transformImport?: {
libraryName: string;
libraryDirectory?: string;
Expand All @@ -91,29 +91,33 @@ export interface BuildParams {
ignores?: string[];
moduleIdStrategy?: 'hashed' | 'named';
minify?: boolean;
_minifish?: {
mapping: Record<string, string>;
metaPath?: string;
inject?: Record<
string,
| { from: string; exclude?: string; preferRequire?: boolean }
| {
from: string;
named: string;
exclude?: string;
preferRequire?: boolean;
}
| {
from: string;
namespace: true;
exclude?: string;
preferRequire?: boolean;
}
>;
};
optimization?: {
skipModules?: boolean;
};
_minifish?:
| false
| {
mapping: Record<string, string>;
metaPath?: string;
inject?: Record<
string,
| { from: string; exclude?: string; preferRequire?: boolean }
| {
from: string;
named: string;
exclude?: string;
preferRequire?: boolean;
}
| {
from: string;
namespace: true;
exclude?: string;
preferRequire?: boolean;
}
>;
};
optimization?:
| false
| {
skipModules?: boolean;
};
};
hooks: JsHooks;
watch: boolean;
Expand Down

0 comments on commit 9f95295

Please sign in to comment.