• Creates a literal by first converting the dataType string to a named node.

    Parameters

    • object: string | number

      Object value.

    • dataType: NamedNode<string>

      Object data type (as string).

    Returns Literal