Skip to content

JsonSerializerOptions

@tsed/json-mapper

Usage

typescript
import { JsonSerializerOptions } from "@tsed/json-mapper";

See /packages/specs/json-mapper/src/types/domain/JsonSerializerOptions.ts.

Overview

ts
interface JsonSerializerOptions<T = any, C = any> extends MetadataTypes<T, C>, Pick<JsonMapperGlobalOptions, "strictGroups"> {
    types?: Map<Type<any> | Symbol | string, JsonMapperMethods>;
    useAlias?: boolean;
    [key: string]: any;
}

types

ts
types?: Map<Type<any> | Symbol | string, JsonMapperMethods>;

Types used to map complex types (Symbol, Number, String, etc...)

useAlias

ts
useAlias?: boolean;

useAlias mapping

[key: string]

ts
[key: string]: any;

Released under the MIT License.