@stacksjs/env 0.70.368 → 0.70.370

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.
Files changed (2) hide show
  1. package/dist/types.d.ts +6 -3
  2. package/package.json +3 -3
package/dist/types.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import type { BooleanValidatorType, EnumValidatorType, NumberValidatorType, StringValidatorType } from '@stacksjs/ts-validation';
1
+ import type { BooleanValidatorType, NumberValidatorType, StringValidatorType } from '@stacksjs/ts-validation';
2
2
  import type { EnvKey } from '../../../env';
3
3
  export declare const envEnum: EnumObject;
4
4
  declare interface EnumObject {
@@ -17,7 +17,10 @@ declare interface BooleanEnvConfig {
17
17
  default: boolean
18
18
  }
19
19
  declare interface EnumEnvConfig {
20
- validation: EnumValidatorType
20
+ validation: {
21
+ readonly name: 'enum'
22
+ getAllowedValues: () => readonly string[]
23
+ }
21
24
  default: string
22
25
  }
23
26
  export declare interface StacksEnv {
@@ -145,5 +148,5 @@ export declare interface FrontendEnv {
145
148
  }
146
149
  declare type EnvValueConfig = StringEnvConfig | NumberEnvConfig | BooleanEnvConfig | EnumEnvConfig;
147
150
  export type EnvConfig = Partial<Record<EnvKey, EnvValueConfig>>;
148
- export type EnvSchema = any;
151
+ export type EnvSchema = EnvConfig;
149
152
  export type FrontendEnvKeys = keyof FrontendEnv;
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@stacksjs/env",
3
3
  "type": "module",
4
4
  "sideEffects": false,
5
- "version": "0.70.368",
5
+ "version": "0.70.370",
6
6
  "description": "Stacks env helper methods.",
7
7
  "author": "Chris Breuer",
8
8
  "contributors": [
@@ -56,7 +56,7 @@
56
56
  },
57
57
  "devDependencies": {
58
58
  "better-dx": "^0.2.17",
59
- "@stacksjs/path": "0.70.368",
60
- "@stacksjs/validation": "0.70.368"
59
+ "@stacksjs/path": "0.70.370",
60
+ "@stacksjs/validation": "0.70.370"
61
61
  }
62
62
  }