UNPKG

object-shape-tester

Version:
17 lines (16 loc) 475 B
/** * Creates a shape that requires a non-empty string. * * @category Shape * @example * * ```ts * import {nonEmptyStringShape, checkValidShape} from 'object-shape-tester'; * * const myShape = nonEmptyStringShape(); * * checkValidShape(' ', myShape); // `true` * checkValidShape('', myShape); // `false` * ``` */ export declare function nonEmptyStringShape(defaultValue?: string): import("../shape/shape.js").Shape<import("@sinclair/typebox").TUnsafe<string>>;