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