Skip to content

Commit

Permalink
feat: Declare types for type display customisations
Browse files Browse the repository at this point in the history
  • Loading branch information
Sidnioulz committed Feb 9, 2023
1 parent 953cb48 commit 5cccc55
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions packages/node-plop/types/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ export interface IncludeDefinitionConfig {
helpers?: boolean;
partials?: boolean;
actionTypes?: boolean;
actionTypeDisplays?: boolean;
}

export type IncludeDefinition = boolean | string[] | IncludeDefinitionConfig;
Expand Down Expand Up @@ -46,6 +47,8 @@ export interface NodePlopAPI {

setActionType(name: string, fn: CustomActionFunction): void;

setActionTypeDisplay(name: string, typeDisplay: string): void;

/**
* This does not include a `CustomActionConfig` for the same reasons
* Listed in the `ActionType` declaration. Please see that JSDoc for more
Expand All @@ -54,6 +57,10 @@ export interface NodePlopAPI {

getActionTypeList(): string[];

getActionTypeDisplay(name: string): string;

getActionTypeDisplayList(): string[];

setPlopfilePath(filePath: string): void;

getPlopfilePath(): string;
Expand Down

0 comments on commit 5cccc55

Please sign in to comment.