Documentation
    Preparing search index...

    Namespace TypedRoute

    Type safe router decorator functions.

    TypedRoute provides router decorators that serialize response values with typia functions generated from the declared return type.

    The default assert serializer rejects a response outside the declared type with a 500 error. The configured stringify mode can choose a different validation policy; validate.log logs failures and returns JSON text. Interceptors that run after this serializer receive the serialized string.

    Jeongho Nam - https://github.com/samchon

    contracts/common.md#principled-implementation Each method decorator combines Nest's router decorator, a JSON content type, and an interceptor that stringifies the returned value with the function the transform selected, so the JSON text is produced by generated code; an error thrown by the handler is routed to the registered exception converters.

    contracts/common.md#clear-and-simple-design One generator function creates the five HTTP-method decorators, and the interceptor and the router table are module-private.

    contracts/common.md#prohibited-implementation-shortcuts The loop after the namespace copies the marker properties of typia's stringify functions onto the decorators for the transform, which mutates only these exported functions; the logger is a module variable, not a patched global.

    contracts/common.md#meaningful-documentation The comment documents the decorator family, the path and stringify arguments, and the validation modes.

    contracts/portability.md#os-neutral-implementation Routing paths and serialized response values are HTTP protocol data; the interceptor and logger do not define a native file or subprocess boundary.

    IValidateErrorLog
    Delete
    Get
    Patch
    Post
    Put
    setValidateErrorLogger