Skip to content

Commit

Permalink
fix(type): rework config type a bit to force base confit type on config
Browse files Browse the repository at this point in the history
  • Loading branch information
djMax committed Oct 17, 2023
1 parent 5981216 commit 9e47b73
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export function confit<ConfigurationType extends object>(options?: ConfitOptions
return new Factory<ConfigurationType>(options || {});
}

export type Confit<ConfigSchema extends BaseConfitType> = Config<ConfigSchema>;
export type Confit<ConfigSchema> = Config<ConfigSchema & BaseConfitType>;

export * from './Factory';
export * from './types';
Expand Down

0 comments on commit 9e47b73

Please sign in to comment.