@yeoman/types
Advanced tools
Comparing version 1.0.1 to 1.1.0
{ | ||
"name": "@yeoman/types", | ||
"version": "1.0.1", | ||
"version": "1.1.0", | ||
"private": false, | ||
@@ -59,3 +59,7 @@ "description": "Common API for yeoman's generator/environment stack", | ||
}, | ||
"gitHead": "3bf825011c63cd0a235f8fbf4a0cc14c77cf9dc2" | ||
"acceptDependencies": { | ||
"mem-fs": ">=3.0.0", | ||
"mem-fs-editor": ">=10.0.2" | ||
}, | ||
"gitHead": "2baf8182008a615c9354e4bf980b7dba4d74b81d" | ||
} |
@@ -45,4 +45,8 @@ import type { DistinctQuestion, Answers as InquirerAnswers } from 'inquirer'; | ||
export type ProgressCallback<ReturnType> = (progress: { step: (prefix: string, message: string, ...args: any[]) => void }) => ReturnType; | ||
export type ProgressOptions = { disabled?: boolean; name?: string }; | ||
export type QueuedAdapter = InputOutputAdapter & { | ||
queue<TaskResultType>(fn: Task<TaskResultType>): Promise<void | TaskResultType>; | ||
progress<ResultType>(fn: ProgressCallback<ResultType>, options?: ProgressOptions): Promise<void | ResultType>; | ||
}; |
@@ -31,2 +31,7 @@ import type { PipelineSource, Transform } from 'node:stream'; | ||
/** | ||
* The working-directory for logs. | ||
*/ | ||
logCwd?: string | undefined; | ||
/** | ||
* A value indicating whether the experimental features should be enabled. | ||
@@ -66,2 +71,6 @@ */ | ||
sharedFs: S; | ||
/** | ||
* The working-directory for logs. | ||
*/ | ||
logCwd: string; | ||
@@ -68,0 +77,0 @@ emit(eventName: string | symbol, ...args: any[]): boolean; |
18840
454