From 140656dd5128daa17ddcd1bacde98918f819a9db Mon Sep 17 00:00:00 2001 From: Uzair Date: Mon, 27 May 2024 03:14:25 +0530 Subject: [PATCH] fix: extend Action config to include CustomActionConfig This resolves the issue of typescript throwing object literal can't have property error for custom actions, because it was defaulting to type:ActionConfig whereas it should narrow down to a CustomACtionConfig --- packages/node-plop/types/index.d.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/node-plop/types/index.d.ts b/packages/node-plop/types/index.d.ts index 377f6ac4..a05efc46 100644 --- a/packages/node-plop/types/index.d.ts +++ b/packages/node-plop/types/index.d.ts @@ -215,7 +215,8 @@ export type ActionType = | AddManyActionConfig | ModifyActionConfig | AppendActionConfig - | CustomActionFunction; + | CustomActionFunction + | CustomActionConfig; export interface ActionConfig { type: string;