@yeoman/types
Advanced tools
Comparing version 0.2.0 to 0.3.0
{ | ||
"name": "@yeoman/types", | ||
"version": "0.2.0", | ||
"version": "0.3.0", | ||
"private": false, | ||
@@ -58,3 +58,3 @@ "description": "Common API for yeoman's generator/environment stack", | ||
}, | ||
"gitHead": "1982816cfe6af4e92f999e344cf9b8539ff308eb" | ||
"gitHead": "6d33420db41115e6d1867dede74000470d245a6e" | ||
} |
@@ -5,3 +5,3 @@ import type { Transform } from 'node:stream'; | ||
import type { GeneratorBaseOptions } from '../generator/generator-options.js'; | ||
import type { BaseGeneratorOptions } from '../generator/generator-options.js'; | ||
import type { BaseGenerator } from '../generator/generator.js'; | ||
@@ -16,3 +16,3 @@ import type { GetGeneratorConstructor, GetGeneratorOptions } from '../generator/utils.js'; | ||
export type BaseEnvironmentOptions = GeneratorBaseOptions & { | ||
export type BaseEnvironmentOptions = BaseGeneratorOptions & { | ||
/** | ||
@@ -31,3 +31,3 @@ * The working-directory of the environment. | ||
*/ | ||
sharedOptions?: GeneratorBaseOptions; | ||
sharedOptions?: BaseGeneratorOptions; | ||
@@ -47,3 +47,3 @@ /** | ||
export type BaseEnvironment<A = InputOutputAdapter, S extends Store = Store> = { | ||
export type BaseEnvironment<A = InputOutputAdapter, S extends Store<MemFsEditorFile> = Store<MemFsEditorFile>> = { | ||
cwd: string; | ||
@@ -60,3 +60,3 @@ adapter: A; | ||
args: string[], | ||
options?: Partial<Omit<GetGeneratorOptions<G>, 'env' | 'resolved' | 'resolvec'>>, | ||
options?: Partial<Omit<GetGeneratorOptions<G>, 'env' | 'resolved' | 'namespace'>>, | ||
): Promise<G>; | ||
@@ -67,3 +67,3 @@ | ||
args: string[], | ||
options?: Partial<Omit<GetGeneratorOptions<G>, 'env' | 'resolved' | 'resolvec'>>, | ||
options?: Partial<Omit<GetGeneratorOptions<G>, 'env' | 'resolved' | 'namespace'>>, | ||
): Promise<G>; | ||
@@ -106,3 +106,3 @@ | ||
*/ | ||
register(filePath: string, namespace?: string, packagePath?: string): Promise<void>; | ||
register(filePath: string, namespace?: string, packagePath?: string): void; | ||
@@ -109,0 +109,0 @@ /** |
@@ -5,3 +5,3 @@ import type { BaseEnvironment } from '../environment/environment.js'; | ||
export type GeneratorBaseOptions = { | ||
export type BaseGeneratorOptions = { | ||
/** | ||
@@ -62,3 +62,3 @@ * Skip package manager install task. | ||
export type GeneratorOptions = GeneratorBaseOptions & | ||
export type GeneratorOptions = BaseGeneratorOptions & | ||
GeneratorNamespace & | ||
@@ -65,0 +65,0 @@ ( |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
12738