Skip to content

Commit 17a9bbd

Browse files
fix: add json type to flagDataTypeMap in feature flag factory
1 parent 007fe85 commit 17a9bbd

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/frontend/factories/feature-flag-factory.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,18 @@
11
import { config } from "../../config";
2-
import { KindeFlag, KindeFlagRaw, KindeFlagTypeCode, KindeFlagTypeValue } from "../../types";
2+
import {
3+
KindeFlag,
4+
KindeFlagRaw,
5+
KindeFlagTypeCode,
6+
KindeFlagTypeValue,
7+
} from "../../types";
38
import { KindeFeatureFlags } from "../types";
49

510
/** @type {Record<KindeFlagTypeCode, KindeFlagTypeValue>} */
611
export const flagDataTypeMap: Record<KindeFlagTypeCode, KindeFlagTypeValue> = {
712
s: "string",
813
i: "integer",
914
b: "boolean",
15+
j: "json",
1016
};
1117

1218
export const getFlagFactory = (featureFlags: KindeFeatureFlags) => {

0 commit comments

Comments
 (0)