Skip to content

Commit 855bed7

Browse files
committed
Fix a type error in the Environment bootstrapper
1 parent 4268dda commit 855bed7

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "strontium",
3-
"version": "2.7.2",
3+
"version": "2.7.3",
44
"description": "Strontium is a TypeScript toolkit for High Performance API servers built for Production not Projects.",
55
"main": "lib/src/index.js",
66
"types": "lib/src/index.d.ts",

src/bootstrap/drivers/Environment.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,9 @@ export class Environment<O extends ObjectValidator> implements Process {
77

88
constructor(private validator: O) {}
99

10-
public getKey<K extends keyof ValidatedObject<O>>(key: K): O[K] {
10+
public getKey<K extends keyof ValidatedObject<O>>(
11+
key: K
12+
): ValidatedObject<O>[K] {
1113
if (this.validatedEnvironment !== undefined) {
1214
return this.validatedEnvironment[key]
1315
} else {

0 commit comments

Comments
 (0)