Skip to content

Commit

Permalink
feat: add types
Browse files Browse the repository at this point in the history
  • Loading branch information
maverox committed Jun 25, 2024
1 parent f3315f4 commit 19f59ea
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion packages/create-webpack-app/src/types.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
export type {
ActionConfig,
AddActionConfig,
CustomActionConfig,
AddManyActionConfig,
AppendActionConfig,
CustomActionFunction,
Expand All @@ -11,8 +12,19 @@ export type {
PlopGeneratorConfig,
Actions,
} from "node-plop";
export interface Answers extends Record<string, any> {}
// eslint-disable-next-line
export type Answers = Record<string, any>;
export interface PlopActionHooksFailures {
type: string;
path: string;
error: string;
message: string;
}

export interface PlopActionHooksChanges {
type: string;
path: string;
}
import { ActionType as ActionTypeBase, CustomActionConfig } from "node-plop";
// extended ACtionType to include custom action config as previously it was not recognizing
export type ActionType = ActionTypeBase | CustomActionConfig<string>;
Expand Down

0 comments on commit 19f59ea

Please sign in to comment.