Skip to content

Commit

Permalink
Merge pull request #26 from thiagomini/chore/remove-additional-types
Browse files Browse the repository at this point in the history
chore: remove additional parameters type
  • Loading branch information
thiagomini authored Nov 7, 2023
2 parents e0ff6f3 + c7c80ce commit fa5c59e
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions src/interfaces/default-attributes-factory.interface.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,11 @@ export type AdditionalParams<Transient> = {
transientParams?: Transient;
};

type DefaultAttributes<T> = (
type DefaultAttributes<T> =
| T
| {
[K in keyof T]?: T[K] | Association<T[K]>;
}
) &
Partial<{
[key: string]: unknown;
}>;
};

export type DefaultAttributesFactory<T, P> = (
params: AdditionalParams<P>,
Expand Down

0 comments on commit fa5c59e

Please sign in to comment.