UNPKG

@tsed/json-mapper

Version:
8 lines (7 loc) 295 B
/** * Execute the `onSerialize` hooks registered on a schema before emitting a value. * Used internally by the serializer when a property exposes lifecycle hooks. */ export function alterOnSerialize(schema, value, options) { return schema.$hooks.alter("onSerialize", value, [options]); }