(enumDescription: any, value: any)
| 732 | |
| 733 | // Checks a given enum value against a list of valid enum values from package.json. |
| 734 | private isValidEnum(enumDescription: any, value: any): value is string { |
| 735 | if (isString(value) && isArray(enumDescription) && enumDescription.length > 0) { |
| 736 | return enumDescription.some(x => x.toLowerCase() === value.toLowerCase()); |
| 737 | } |
| 738 | return false; |
| 739 | } |
| 740 | |
| 741 | private isArrayOfCommentContinuationPatterns(x: any): x is (string | CommentPattern)[] { |
| 742 | return isArray(x) && x.every(y => isString(y) || this.isCommentPattern(y)); |
no test coverage detected