MCPcopy Create free account
hub / github.com/boringstack-xyz/boringstack / isFeatureKey

Function isFeatureKey

apps/api/src/api/users/users.acl-utils.ts:7–15  ·  view source on GitHub ↗
(raw: string)

Source from the content-addressed store, hash-verified

5export { coerceRole, isRole };
6
7export const isFeatureKey = (raw: string): raw is FeatureKey => {
8 for (const key of FEATURE_KEYS) {
9 if (key === raw) {
10 return true;
11 }
12 }
13
14 return false;
15};
16
17export const filterToKnownFeatureKeys = <
18 T extends { readonly featureKey: string },

Callers 2

filterToKnownFeatureKeysFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected