Skip to content

Variable: ResourcefulStringType

ts
const ResourcefulStringType: CallableNewable<
  ResourcefulStringTypeOptions,
  BaseClass
>;

Callable constructor for creating validated string type instances. Supports both constructor and function call patterns for flexible usage.

Example

typescript
const stringType = new ResourcefulStringType({ minLength: 1, maxLength: 100 });
const stringType2 = ResourcefulStringType({ pattern: "^[a-zA-Z]+$" });

See

OpenAPI 3.0 String Type