@yeoman/types 1.0.0 → 1.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yeoman/types",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "private": false,
5
5
  "description": "Common API for yeoman's generator/environment stack",
6
6
  "keywords": [
@@ -56,5 +56,5 @@
56
56
  "access": "public",
57
57
  "registry": "https://registry.npmjs.org/"
58
58
  },
59
- "gitHead": "cb5b453d1e92fcc70874d4cdaea77cf90fdd60f7"
59
+ "gitHead": "3bf825011c63cd0a235f8fbf4a0cc14c77cf9dc2"
60
60
  }
@@ -16,11 +16,12 @@ import type {
16
16
  } from './methods-options.js';
17
17
 
18
18
  export type EnvironmentConstructor<A extends InputOutputAdapter = InputOutputAdapter> = new (
19
- options?: BaseEnvironmentOptions,
19
+ options?: BaseEnvironmentOptions<A>,
20
+ /** @deprecated */
20
21
  adapter?: A,
21
22
  ) => BaseEnvironment<A>;
22
23
 
23
- export type BaseEnvironmentOptions = BaseGeneratorOptions & {
24
+ export type BaseEnvironmentOptions<A extends InputOutputAdapter = InputOutputAdapter> = BaseGeneratorOptions & {
24
25
  /**
25
26
  * The working-directory of the environment.
26
27
  */
@@ -40,6 +41,11 @@ export type BaseEnvironmentOptions = BaseGeneratorOptions & {
40
41
  * `mem-fs` Store.
41
42
  */
42
43
  sharedFs?: Store;
44
+
45
+ /**
46
+ * Input/Output adapter.
47
+ */
48
+ adapter?: A;
43
49
  };
44
50
 
45
51
  export type ApplyTransformsOptions = {