Skip to content

Commit

Permalink
fix: fix nested config types to be optional
Browse files Browse the repository at this point in the history
  • Loading branch information
pi0 committed Dec 14, 2021
1 parent 0615a56 commit d48e0ac
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,9 @@ export interface BuildContext {

export type BuildPreset = BuildConfig | (() => BuildConfig)

export interface BuildConfig extends Partial<Omit<BuildOptions, 'entries'>> {
type DeepPartial<T> = { [P in keyof T]?: DeepPartial<T[P]>; };

export interface BuildConfig extends DeepPartial<Omit<BuildOptions, 'entries'>> {
entries?: (BuildEntry | string)[]
preset?: string | BuildPreset
hooks?: Partial<BuildHooks>
Expand Down

0 comments on commit d48e0ac

Please sign in to comment.