Skip to content

Commit 06260cc

Browse files
committed
fix: expose missing types
1 parent 6cd9213 commit 06260cc

2 files changed

Lines changed: 6 additions & 4 deletions

File tree

src/environment-base.ts

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,8 @@ export type EnvironmentLookupOptions = LookupOptions & {
5454
customizeNamespace?: (ns?: string) => string | undefined;
5555
};
5656

57-
export type EnvironmentOptions = BaseEnvironmentOptions &
57+
export type EnvironmentOptions = ConflicterOptions &
58+
BaseEnvironmentOptions &
5859
Omit<TerminalAdapterOptions, 'promptModule'> & {
5960
adapter?: InputOutputAdapter;
6061
logCwd?: string;
@@ -145,14 +146,15 @@ export default class EnvironmentBase extends EventEmitter implements BaseEnviron
145146
sharedFs: MemFs<MemFsEditorFile>;
146147
conflicterOptions?: ConflicterOptions;
147148

148-
protected readonly options: EnvironmentOptions;
149+
readonly sharedOptions: Record<string, any>;
150+
readonly options: EnvironmentOptions;
151+
149152
protected readonly aliases: Array<{ match: RegExp; value: string }> = [];
150153
protected store: Store;
151154
protected command?: YeomanCommand;
152155
protected runLoop: GroupedQueue;
153156
protected composedStore: ComposedStore;
154157
protected lookups: string[];
155-
protected sharedOptions: Record<string, any>;
156158
protected repository: FlyRepository;
157159
protected experimental: boolean;
158160
protected _rootGenerator?: BaseGenerator;

src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { type EnvironmentOptions } from './environment-base.ts';
22
import Environment from './environment-full.ts';
33

44
export { default } from './environment-full.ts';
5-
export { default as EnvironmentBase } from './environment-base.ts';
5+
export { default as EnvironmentBase, type EnvironmentOptions } from './environment-base.ts';
66

77
export const createEnv = (options?: EnvironmentOptions) => new Environment(options);
88

0 commit comments

Comments
 (0)