Skip to content

Commit

Permalink
Rebase and apply updated formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
rileytomasek committed Apr 21, 2024
1 parent d55e09a commit 94be866
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/model/model.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ export type PartialModelArgs<
MClient extends Model.Base.Client,
MConfig extends Model.Base.Config,
MRun extends Model.Base.Run,
MResponse extends Model.Base.Response
MResponse extends Model.Base.Response,
> = Prettify<
PartialDeep<Pick<ModelArgs<MClient, MConfig, MRun, MResponse>, 'params'>> &
Partial<Omit<ModelArgs<MClient, MConfig, MRun, MResponse>, 'params'>>
Expand All @@ -61,7 +61,7 @@ export abstract class AbstractModel<

/** Clones the model, optionally modifying its config */
abstract extend<
Args extends PartialModelArgs<MClient, MConfig, MRun, MResponse>
Args extends PartialModelArgs<MClient, MConfig, MRun, MResponse>,
>(args?: Args): this;

public abstract readonly modelType: Model.Type;
Expand Down
4 changes: 2 additions & 2 deletions src/utils/helpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ const deepMergeEventsImpl: DeepMerge = deepmergeInit({
// Slightly custom deepMerge which handles `undefined` arguments as empty objects.
export function deepMerge<
T1 extends object | undefined | null,
T2 extends object | undefined | null
T2 extends object | undefined | null,
>(t1?: T1, t2?: T2): T1 & T2 {
return deepMergeImpl<T1, T2>(
t1 ?? ({} as T1),
Expand All @@ -25,7 +25,7 @@ export function deepMerge<
// and ensures that we remove duplicate event handlers.
export function mergeEvents<
T1 extends object | undefined,
T2 extends object | undefined
T2 extends object | undefined,
>(t1?: T1, t2?: T2): T1 & T2 {
return deepMergeEventsImpl<T1, T2>(
t1 ?? ({} as T1),
Expand Down

0 comments on commit 94be866

Please sign in to comment.