From 9b3fc3bd73781c41ec4b0e9f9014136cf4422924 Mon Sep 17 00:00:00 2001 From: Min Kim Date: Thu, 19 Dec 2024 16:31:21 -0500 Subject: [PATCH] Remove unused interfaces Signed-off-by: Min Kim --- packages/cli/src/lib/new/types.ts | 39 ------------------------------- 1 file changed, 39 deletions(-) diff --git a/packages/cli/src/lib/new/types.ts b/packages/cli/src/lib/new/types.ts index 534f99f94f..fc9d520a74 100644 --- a/packages/cli/src/lib/new/types.ts +++ b/packages/cli/src/lib/new/types.ts @@ -37,45 +37,6 @@ export interface CreateContext { markAsModified(): void; } -export type AnyOptions = Record; - export type Prompt = DistinctQuestion & { name: string; }; - -export interface Factory { - /** - * The name used for this factory. - */ - name: string; - - /** - * A description that describes what this factory creates to the user. - */ - description: string; - - /** - * An optional options discovery step that is run - * before the prompts to potentially fill in some of the options. - */ - optionsDiscovery?(): Promise>; - - /** - * Inquirer prompts that will be filled in either interactively or - * through command line arguments. - */ - optionsPrompts?: ReadonlyArray>; - - /** - * The main method of the factory that handles creation. - */ - create(options: TOptions, context?: CreateContext): Promise; -} - -export type AnyFactory = Factory; - -export function createFactory( - config: Factory, -): AnyFactory { - return config as AnyFactory; -}