@stryke/types 0.1.2 → 0.2.0
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.
|
@@ -23,14 +23,14 @@ export type TypeDefinition = {
|
|
|
23
23
|
export type TypeDefinitionParameter = TypeDefinition | string;
|
|
24
24
|
export interface DotenvTypeDefinitions {
|
|
25
25
|
/**
|
|
26
|
-
* A path to the type definition for the expected env configuration parameters. This value can include both a path to the typescript file and the name of the type definition to use separated by a `":"` or `"#"` character. For example: `"./src/types/env.ts#
|
|
26
|
+
* A path to the type definition for the expected env configuration parameters. This value can include both a path to the typescript file and the name of the type definition to use separated by a `":"` or `"#"` character. For example: `"./src/types/env.ts#Variables"`.
|
|
27
27
|
*
|
|
28
28
|
* @remarks
|
|
29
29
|
* If a value is not provided for this option, the plugin will attempt to infer the type definition from the `storm.dotenv.types.config` object in the project's `package.json` file.
|
|
30
30
|
*/
|
|
31
31
|
variables?: TypeDefinitionParameter;
|
|
32
32
|
/**
|
|
33
|
-
* A path to the type definition for the expected env secret parameters. This value can include both a path to the typescript file and the name of the type definition to use separated by a `":"` or `"#"` character. For example: `"./src/types/env.ts#
|
|
33
|
+
* A path to the type definition for the expected env secret parameters. This value can include both a path to the typescript file and the name of the type definition to use separated by a `":"` or `"#"` character. For example: `"./src/types/env.ts#Secrets"`.
|
|
34
34
|
*
|
|
35
35
|
* @remarks
|
|
36
36
|
* If a value is not provided for this option, the plugin will attempt to infer the type definition from the `storm.dotenv.types.secrets` object in the project's `package.json` file.
|
|
@@ -51,9 +51,17 @@ export interface DotenvConfiguration {
|
|
|
51
51
|
additionalFiles?: string[];
|
|
52
52
|
/**
|
|
53
53
|
* The type definitions for the environment variables
|
|
54
|
+
*
|
|
55
|
+
* @remarks
|
|
56
|
+
* This value can be a {@link DotenvTypeDefinitions} or just a path to a typescript file and the `"name"` values are defaulted to the following:
|
|
57
|
+
* - {@link DotenvTypeDefinitions.variables} - `"Variables"`
|
|
58
|
+
* - {@link DotenvTypeDefinitions.secrets} - `"Secrets"`
|
|
54
59
|
*/
|
|
55
|
-
types?: DotenvTypeDefinitions;
|
|
60
|
+
types?: DotenvTypeDefinitions | string;
|
|
56
61
|
}
|
|
57
62
|
export interface StormConfigurationGroups {
|
|
58
|
-
|
|
63
|
+
/**
|
|
64
|
+
* The configuration for the loading variable and secrets into the environment via `.env` files
|
|
65
|
+
*/
|
|
66
|
+
env?: DotenvConfiguration;
|
|
59
67
|
}
|
|
@@ -497,8 +497,6 @@ export interface PackageJsonStormConfiguration {
|
|
|
497
497
|
}
|
|
498
498
|
/**
|
|
499
499
|
* Type for [npm's `package.json` file](https://docs.npmjs.com/creating-a-package-json-file). Also includes types for fields used by other popular projects, like TypeScript and Yarn.
|
|
500
|
-
*
|
|
501
|
-
* @category File
|
|
502
500
|
*/
|
|
503
501
|
export type PackageJson = JsonObject & PackageJsonNodeJsStandard & PackageJsonStandard & PackageJsonNonStandardEntryPoints & PackageJsonTypeScriptConfiguration & PackageJsonYarnConfiguration & PackageJsonJSPMConfiguration & PackageJsonStormConfiguration;
|
|
504
502
|
export {};
|