From f0732fe51367520660f72ff9fe85aa1c7fda83f9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=89=E5=92=B2=E6=99=BA=E5=AD=90=20Kevin=20Deng?= Date: Sat, 28 Dec 2024 01:44:26 +0800 Subject: [PATCH] feat: add `defineConfig` --- src/index.ts | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/index.ts b/src/index.ts index dfb2492..abcb78d 100644 --- a/src/index.ts +++ b/src/index.ts @@ -17,9 +17,12 @@ import { git } from './features/git' import { replace } from './features/replace' import { variable } from './features/variable' import { CliError, getColor } from './utils' -import type { ConfigTemplate, Context, ProjectInfo } from './types' +import type { Config, ConfigTemplate, Context, ProjectInfo } from './types' -export type { Config } from './types' +export type { Config } +export function defineConfig(config: Config): Config { + return config +} export async function edit(): Promise { const { init, file } = await getConfig() -- knotmirror 0.0.1