This repository has been archived on 2026-03-28. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files

11 lines
369 B
TypeScript

import { Result } from "../result";
import { Type } from "../type";
export declare class Arr<T> extends Type<Array<T>> {
readonly elementType: Type<T>;
constructor(t: Type<T>);
check(val: any): Result<Array<T>>;
sliceResult(val: any): Result<Array<T>>;
and<R>(t: Type<R>): Type<Array<T> & R>;
}
export declare function array<T>(t: Type<T>): Arr<T>;