(raw: string)
| 5 | export { coerceRole, isRole }; |
| 6 | |
| 7 | export 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 | |
| 17 | export const filterToKnownFeatureKeys = < |
| 18 | T extends { readonly featureKey: string }, |
no outgoing calls
no test coverage detected