Skip to main content
Version: Latest (0.60.x)

[V] $lib

const $lib: TypeSpecLibrary<object, Record<string, any>, "attribute" | "unwrapped" | "ns" | "nsDeclaration">;

TypeSpec Xml Library Definition

Type declaration

NameTypeDefault value
invalid-ns-declaration-memberobject-
invalid-ns-declaration-member.defaultCallableMessage<["name"]>-
ns-enum-not-declarationobject-
ns-enum-not-declaration.default"Enum member used as namespace must be part of an enum marked with @nsDeclaration.""Enum member used as namespace must be part of an enum marked with @nsDeclaration."
ns-missing-prefixobject-
ns-missing-prefix.default"When using a string namespace you must provide a prefix as the 2nd argument.""When using a string namespace you must provide a prefix as the 2nd argument."
ns-not-uriobject-
ns-not-uri.default"Namespace namespace is not a valid URI."-
prefix-not-allowedobject-
prefix-not-allowed.default"@ns decorator cannot have the prefix parameter set when using an enum member.""@ns decorator cannot have the prefix parameter set when using an enum member."