@metreeca/trio - v0.1.1
    Preparing search index...

    Function data

    • Encodes scalars as datatype-typed literals.

      Parameters

      • data: Some<Scalar>

        The scalar value(s) to encode, stringified to their lexical form

      • Optionaldatatype: string

        The IRI of the literal datatype; omitted for plain xsd:string literals

      Returns readonly Typed[]

      The encoded typed literals

      RangeError On a lexical form holding an isolated UTF-16 surrogate code point, or on a relative or otherwise malformed datatype IRI