(theme: Theme)
| 96 | |
| 97 | const {validateProperty, validateArray, errors} = createValidator(); |
| 98 | const isValidPresetTheme = (theme: Theme) => { |
| 99 | if (!isPlainObject(theme)) { |
| 100 | return false; |
| 101 | } |
| 102 | const {errors: themeErrors} = validateTheme(theme); |
| 103 | return themeErrors.length === 0; |
| 104 | }; |
| 105 | |
| 106 | validateProperty(settings, 'schemeVersion', isNumber, DEFAULT_SETTINGS); |
| 107 |
nothing calls this directly
no test coverage detected
searching dependent graphs…