Skip to content

Commit

Permalink
fix(types)!: rename GeneratorBaseOptions to BaseGeneratorOptions
Browse files Browse the repository at this point in the history
  • Loading branch information
mshima committed May 11, 2023
1 parent 93a8b11 commit ced15cb
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions workspaces/types/types/environment/environment.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import type { Transform } from 'node:stream';
import type { Store } from 'mem-fs';
import type { MemFsEditorFile } from 'mem-fs-editor';

import type { GeneratorBaseOptions } from '../generator/generator-options.js';
import type { BaseGeneratorOptions } from '../generator/generator-options.js';
import type { BaseGenerator } from '../generator/generator.js';
import type { GetGeneratorConstructor, GetGeneratorOptions } from '../generator/utils.js';
import type { InputOutputAdapter } from './adapter.js';
Expand All @@ -12,7 +12,7 @@ export type EnvironmentConstructor<A extends InputOutputAdapter = InputOutputAda
adapter?: A,
) => BaseEnvironment<A>;

export type BaseEnvironmentOptions = GeneratorBaseOptions & {
export type BaseEnvironmentOptions = BaseGeneratorOptions & {
/**
* The working-directory of the environment.
*/
Expand All @@ -26,7 +26,7 @@ export type BaseEnvironmentOptions = GeneratorBaseOptions & {
/**
* Options to pass to every generator instantiated by this Environment.
*/
sharedOptions?: GeneratorBaseOptions;
sharedOptions?: BaseGeneratorOptions;

/**
* `mem-fs` Store.
Expand Down
4 changes: 2 additions & 2 deletions workspaces/types/types/generator/generator-options.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import type { BaseEnvironment } from '../environment/environment.js';

export type GeneratorCustomOptions = Record<string, unknown>;

export type GeneratorBaseOptions = {
export type BaseGeneratorOptions = {
/**
* Skip package manager install task.
*/
Expand Down Expand Up @@ -58,7 +58,7 @@ type GeneratorHelpOptions<H extends boolean | undefined> = {
help: H;
};

export type GeneratorOptions = GeneratorBaseOptions &
export type GeneratorOptions = BaseGeneratorOptions &
GeneratorNamespace &
(
| (GeneratorHelpOptions<false | undefined> & GeneratorEnvironmentOptions)
Expand Down

0 comments on commit ced15cb

Please sign in to comment.