Skip to content

Commit 746800b

Browse files
committed
feat: Declare types for type display customisations
1 parent e1db8b3 commit 746800b

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

packages/node-plop/types/index.d.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ export interface IncludeDefinitionConfig {
2626
helpers?: boolean;
2727
partials?: boolean;
2828
actionTypes?: boolean;
29+
actionTypeDisplays?: boolean;
2930
}
3031

3132
export type IncludeDefinition = boolean | string[] | IncludeDefinitionConfig;
@@ -61,6 +62,8 @@ export interface NodePlopAPI {
6162

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

65+
setActionTypeDisplay(name: string, typeDisplay: string): void;
66+
6467
/**
6568
* This does not include a `CustomActionConfig` for the same reasons
6669
* Listed in the `ActionType` declaration. Please see that JSDoc for more
@@ -69,6 +72,10 @@ export interface NodePlopAPI {
6972

7073
getActionTypeList(): string[];
7174

75+
getActionTypeDisplay(name: string): string;
76+
77+
getActionTypeDisplayList(): string[];
78+
7279
setPlopfilePath(filePath: string): void;
7380

7481
getPlopfilePath(): string;

0 commit comments

Comments
 (0)