* Resolve features from options, handling wildcard
(features?: string[])
| 220 | * Resolve features from options, handling wildcard |
| 221 | */ |
| 222 | function resolveFeatures(features?: string[]): Feature[] { |
| 223 | if (!features || features.length === 0 || features.includes("*")) { |
| 224 | return [...ALL_FEATURES]; |
| 225 | } |
| 226 | return features.filter((f): f is Feature => ALL_FEATURES.includes(f as Feature)); |
| 227 | } |
| 228 | |
| 229 | /** |
| 230 | * Type guard for error objects with statusCode |
no outgoing calls
no test coverage detected
searching dependent graphs…