@ganbarodigital/ts-lib-value-objects
Version:
Helps you create value objects and refined types for safer software
12 lines • 485 B
TypeScript
import { RefinedType } from "./RefinedType";
/**
* RefinedPrimitive is a base class for defining a subset of any primitive
* type (e.g. a string). The subset is defined by a contract / specification,
* and enforced by a DataGuarantee.
*
* `T` is the type to be wrapped.
*/
export declare abstract class RefinedPrimitive<T> extends RefinedType<T> {
abstract [Symbol.toPrimitive](hint: string): string | number | boolean | null;
}
//# sourceMappingURL=RefinedPrimitive.d.ts.map