Home > scrubbr > Scrubbr > (constructor)

Scrubbr.(constructor)

Create new scrubbr serializer

Signature:

constructor(schema: string | JSONSchemaDefinitions, options?: ScrubbrOptions);

Parameters

Parameter Type Description
schema string | JSONSchemaDefinitions The TypeScript schema file or JSON object to use for serialization.
options ScrubbrOptions Scrubbr options.