Skip to content

Commit 0c1c89d

Browse files
yangjijiangSingle-Dancer
authored andcommitted
pr建议调整
1 parent 864743c commit 0c1c89d

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

packages/taro-cli/src/create/project.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ export interface IProjectConf {
4343
hideDefaultTemplate?: boolean
4444
framework: FrameworkType
4545
compiler?: CompilerType
46-
ask?: Function
46+
ask?: (config: {}) => Promise<void> | void
4747
}
4848

4949
type CustomPartial<T, K extends keyof T> = Omit<T, K> & Partial<Pick<T, K>>;

packages/taro-cli/src/presets/commands/init.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ export default (ctx: IPluginContext) => {
1414
'--template [template]': '项目模板',
1515
'--css [css]': 'CSS预处理器(sass/less/stylus/none)',
1616
'--autoInstall': '自动安装依赖',
17-
'--ask [ask]': '扩展脚手架的导航步骤',
1817
'-h, --help': 'output usage information'
1918
},
2019
async fn (opts) {

0 commit comments

Comments
 (0)