push
github
0 of 53 branches covered (0.0%)
Branch coverage included in aggregate %.
0 of 1267 new or added lines in 9 files covered. (0.0%)
0 of 8605 relevant lines covered (0.0%)
0.0 hits per line
|
NEW
|
import type {
|
|
|
NEW
|
Ajv2020 as Ajv, |
× |
|
NEW
|
} from 'ajv/dist/2020.js'; |
× |
|
NEW
|
|
× |
|
NEW
|
import {
|
× |
|
NEW
|
PropertySchemaToRegex, |
× |
|
NEW
|
} from '../../../0.3.7.7/TypedString/Object.ts'; |
× |
|
NEW
|
|
× |
|
NEW
|
export function NonEmptyString(
|
× |
|
NEW
|
ajv: Ajv, |
× |
|
NEW
|
) {
|
× |
|
NEW
|
return new PropertySchemaToRegex<{type: 'string', minLength: 1}>( |
× |
|
NEW
|
ajv.compile({
|
× |
|
NEW
|
type: 'object', |
× |
|
NEW
|
additionalProperties: false,
|
× |
|
NEW
|
required: ['type', 'minLength'], |
× |
|
NEW
|
properties: {
|
× |
|
NEW
|
type: {
|
× |
|
NEW
|
type: 'string', |
× |
|
NEW
|
const: 'string', |
× |
|
NEW
|
}, |
× |
|
NEW
|
minLength: {
|
× |
|
NEW
|
type: 'integer', |
× |
|
NEW
|
const: 1, |
× |
|
NEW
|
}, |
× |
|
NEW
|
}, |
× |
|
NEW
|
}), |
× |
|
NEW
|
() => {
|
× |
|
NEW
|
return '[^=,)]+'; |
× |
|
NEW
|
}, |
× |
|
NEW
|
); |
× |
|
NEW
|
} |
× |