Skip to content

Commit f8fb567

Browse files
authored
Merge pull request #106 from statsig-io/fix-environment-type
fix environment types
2 parents 1668ed8 + b9d8f2a commit f8fb567

File tree

3 files changed

+11
-5
lines changed

3 files changed

+11
-5
lines changed

index.d.ts

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,14 @@ declare module 'statsig-node' {
1212
country?: string;
1313
locale?: string;
1414
appVersion?: string;
15-
custom?: Record<string, string | number | boolean | Array<string> | undefined>;
16-
privateAttributes?: Record<string, string | number | boolean | Array<string> | undefined>;
15+
custom?: Record<
16+
string,
17+
string | number | boolean | Array<string> | undefined
18+
>;
19+
privateAttributes?: Record<
20+
string,
21+
string | number | boolean | Array<string> | undefined
22+
>;
1723
};
1824

1925
/**
@@ -28,7 +34,7 @@ declare module 'statsig-node' {
2834

2935
export type StatsigEnvironment = {
3036
tier?: 'production' | 'staging' | 'development';
31-
[key: string]: string;
37+
[key: string]: string | undefined;
3238
};
3339

3440
/**

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "statsig-node",
3-
"version": "4.5.3",
3+
"version": "4.5.4",
44
"description": "Statsig Node.js SDK for usage in multi-user server environments.",
55
"main": "dist/src/index.js",
66
"scripts": {

0 commit comments

Comments
 (0)