Skip to content

Latest commit

 

History

History
15 lines (10 loc) · 547 Bytes

tsbuffer.tsbufferoptions.customtypes.md

File metadata and controls

15 lines (10 loc) · 547 Bytes

Home > tsbuffer > TSBufferOptions > customTypes

TSBufferOptions.customTypes property

Append CustomTypeSchema to given schema, to customize validate & encode methods for specific types. For example 'mongodb/ObjectId'.

Signature:

customTypes?: {
        [schemaId: string]: CustomTypeSchema;
    };