object-shape-tester
Version:
Test object properties and value types.
17 lines (16 loc) • 475 B
TypeScript
/**
* 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>>;