UNPKG

473 BTypeScriptView Raw
1/// <reference types="node" />
2import { Options } from '../common-types';
3import { Type } from './type';
4/**
5 * Buffer (binary) type
6 */
7export declare class BufferType implements Type<Buffer> {
8 readonly name = "buffer";
9 isInstance(value: any): boolean;
10 defaultValue(): Buffer;
11 isCoercible(value: any): boolean;
12 coerce(value: any, options?: Options): any;
13 serialize(value: Buffer | null | undefined, options?: Options): string | null | undefined;
14}