Skip to content

Commit

Permalink
Update tasks.d.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
mshima authored Oct 30, 2024
1 parent 9043521 commit e7c07dd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/types/application/tasks.d.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import type { Storage } from 'yeoman-generator';
import type { Merge } from 'type-fest';
import type { Merge, Simplify } from 'type-fest';
import type { Entity as BaseEntity } from '../base/entity.js';
import type { GetFieldType, GetRelationshipType } from '../utils/entity-utils.ts';
import type { TaskTypes as BaseTaskTypes, TaskParamWithControl, TaskParamWithSource } from '../base/tasks.js';
Expand All @@ -23,7 +23,7 @@ type ApplicationDefaultsTaskParam<E = Entity, A = ApplicationType<E>> = {
* );
*/
applicationDefaults: (
...defaults: (Partial<Record<'__override__', boolean>> & { [Key in keyof A]?: A[Key] | ((ctx: A) => A[Key]) })[]
...defaults: Simplify<Partial<Record<'__override__', boolean>> & { [Key in keyof A]?: A[Key] | ((ctx: A) => A[Key]) }>[]
) => void;
};

Expand Down

0 comments on commit e7c07dd

Please sign in to comment.