@loopback/repository
Version:
Define and implement a common set of interfaces for interacting with databases
15 lines (14 loc) • 393 B
TypeScript
import { Type } from './type';
/**
* Union type, such as string | number
*/
export declare class UnionType implements Type<any> {
itemTypes: Type<any>[];
constructor(itemTypes: Type<any>[]);
readonly name = "union";
isInstance(value: any): boolean;
isCoercible(value: any): boolean;
defaultValue(): any;
coerce(value: any): any;
serialize(value: any): any;
}