• ContentType decorator

    Parameters

    • contentType: string

    Returns ((_target, _key, descriptor) => TypedPropertyDescriptor<any>)

    void

      • (_target, _key, descriptor): TypedPropertyDescriptor<any>
      • Parameters

        • _target: object
        • _key: string
        • descriptor: TypedPropertyDescriptor<any>

        Returns TypedPropertyDescriptor<any>

    Description

    set content-type, https://www.npmjs.com/package/mime-types