Skip to content

Instantly share code, notes, and snippets.

@dagda1
Created June 13, 2020 06:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dagda1/b5645406f4a91ff64b9564fc93e68656 to your computer and use it in GitHub Desktop.
Save dagda1/b5645406f4a91ff64b9564fc93e68656 to your computer and use it in GitHub Desktop.
import { CompilerOptions } from 'typescript';
export type DeepPartial<T> = T extends object ? { [K in keyof T]?: DeepPartial<T[K]> } : T;
export interface FullBuildConfig {
client: {
entries: string;
hotReloading: boolean;
publicPath: string;
};
server: {
entries: string;
filename: string;
bail: boolean;
progress: boolean;
};
ts: {
tsconfig: string;
src: string[];
options: {
verbose: boolean;
outDir: string;
};
};
node: {
entries: string;
filename: string;
externals: string[];
};
devServer: {
entries: string;
devServer: boolean;
isStaticBuild: boolean;
publicDir: string;
publicPath: string;
typescriptOptions: CompilerOptions;
};
}
export type BuildConfig = DeepPartial<FullBuildConfig>;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment