Skip to content

Commit eec1abb

Browse files
committed
feat: Declare types for type display customisations
1 parent 953cb48 commit eec1abb

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
@@ -11,6 +11,7 @@ export interface IncludeDefinitionConfig {
1111
helpers?: boolean;
1212
partials?: boolean;
1313
actionTypes?: boolean;
14+
actionTypeDisplays?: boolean;
1415
}
1516

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

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

50+
setActionTypeDisplay(name: string, typeDisplay: string): void;
51+
4952
/**
5053
* This does not include a `CustomActionConfig` for the same reasons
5154
* Listed in the `ActionType` declaration. Please see that JSDoc for more
@@ -54,6 +57,10 @@ export interface NodePlopAPI {
5457

5558
getActionTypeList(): string[];
5659

60+
getActionTypeDisplay(name: string): string;
61+
62+
getActionTypeDisplayList(): string[];
63+
5764
setPlopfilePath(filePath: string): void;
5865

5966
getPlopfilePath(): string;

0 commit comments

Comments
 (0)