• @Utf8 defines the decorated property as an unsigned 8 bit integer encoded as an utf-8 string.

    Type Parameters

    • This extends object

      The type of the class the decorator is applied to.

    • Value

      The type of the decorated property.

    Parameters

    Returns void

    Here in the following example the @Until controller is associated with the the @Utf8 decorator.

    class Protocol {
    @Until(EOF)
    @Utf8
    foo: string
    }

    The typical use-case would be to have a generic space of a pre-defined size with a an utf encoded string.

    class Protocol {
    @Size(64)
    @Utf8
    foo: string
    }

    This decorator is supposed to be used in conjunction of a controller.