Skip to main content
Version: Next 🚧

[V] $lib

const $lib: TypeSpecLibrary<object, Record<string, any>, never>;

Type declaration​

NameTypeDefault value
accessobject-
access.default"Access decorator value must be "public" or "internal"."-
client-nameobject-
client-name.defaultCallableMessage<["name"]>-
client-serviceobject-
client-service.defaultCallableMessage<["name"]>-
conflict-access-overrideobject-
conflict-access-override.default"@access override conflicts with the access calculated from operation or other @access override."-
conflict-usage-overrideobject-
conflict-usage-override.default"@usage override conflicts with the usage calculated from operation or other @usage override."-
conflicting-multipart-model-usageobject-
conflicting-multipart-model-usage.default"Invalid encoding""Invalid encoding"
conflicting-multipart-model-usage.wrongTypeCallableMessage<["modelName", "modelName", "modelName"]>-
discriminator-not-constantobject-
discriminator-not-constant.defaultCallableMessage<["discriminator"]>-
discriminator-not-stringobject-
discriminator-not-string.defaultCallableMessage<["discriminator", "discriminatorValue"]>-
duplicate-client-nameobject-
duplicate-client-name.defaultCallableMessage<["name", "scope"]>-
duplicate-client-name.nonDecoratorCallableMessage<["name", "scope"]>-
duplicate-example-fileobject-
duplicate-example-file.defaultCallableMessage<["filename", "title", "operationId"]>-
empty-client-nameobject-
empty-client-name.default"Cannot pass an empty value to the @clientName decorator"-
encoding-multipart-bytesobject-
encoding-multipart-bytes.default"Encoding should not be applied to bytes content in a multipart request. This is semi-incompatible with how multipart works in HTTP.""Encoding should not be applied to bytes content in a multipart request. This is semi-incompatible with how multipart works in HTTP."
example-loadingobject-
example-loading.defaultCallableMessage<["filename", "error"]>-
example-loading.noDirectoryCallableMessage<["directory"]>-
example-loading.noOperationIdCallableMessage<["filename"]>-
example-value-no-mappingobject-
example-value-no-mapping.defaultCallableMessage<["relativePath", "value"]>-
flatten-polymorphismobject-
flatten-polymorphism.default"Cannot flatten property of polymorphic type."-
incorrect-client-formatobject-
incorrect-client-format.defaultCallableMessage<["format", "expectedTargetTypes"]>-
invalid-encodeobject-
invalid-encode.default"Invalid encoding""Invalid encoding"
invalid-encode.wrongTypeCallableMessage<["encoding", "type"]>-
invalid-usageobject-
invalid-usage.default"Usage decorator value must be 2 ("input") or 4 ("output")."-
multiple-response-typesobject-
multiple-response-types.defaultCallableMessage<["operation", "response"]>-
multiple-servicesobject-
multiple-services.defaultCallableMessage<["service"]>-
no-corresponding-method-paramobject-
no-corresponding-method-param.defaultCallableMessage<["paramName", "methodName", "paramName", "paramName"]>-
no-emitter-nameobject-
no-emitter-name.default"Can not find name for your emitter, please check your emitter name.""Can not find name for your emitter, please check your emitter name."
override-method-parameters-mismatchobject-
override-method-parameters-mismatch.defaultCallableMessage<["methodName", "originalParameters", "overrideParameters"]>-
server-param-not-pathobject-
server-param-not-path.defaultCallableMessage<["templateArgumentName", "templateArgumentType"]>-
unexpected-http-param-typeobject-
unexpected-http-param-type.defaultCallableMessage<["paramName", "expectedType", "actualType"]>-
union-nullobject-
union-null.default"Cannot have a union containing only null types.""Cannot have a union containing only null types."
union-unsupportedobject-
union-unsupported.default"Unions cannot be emitted by our language generators unless all options are literals of the same type.""Unions cannot be emitted by our language generators unless all options are literals of the same type."
union-unsupported.null"Unions containing multiple model types cannot be emitted unless the union is between one model type and 'null'.""Unions containing multiple model types cannot be emitted unless the union is between one model type and 'null'."
unknown-client-formatobject-
unknown-client-format.defaultCallableMessage<["format", "knownValues"]>-
unsupported-generic-decorator-arg-typeobject-
unsupported-generic-decorator-arg-type.defaultCallableMessage<["decoratorName"]>-
unsupported-kindobject-
unsupported-kind.defaultCallableMessage<["kind"]>-
unsupported-protocolobject-
unsupported-protocol.default"Currently we only support HTTP and HTTPS protocols""Currently we only support HTTP and HTTPS protocols"
use-enum-insteadobject-
use-enum-instead.default"Use enum instead of union of string or number literals. Falling back to the literal type.""Use enum instead of union of string or number literals. Falling back to the literal type."
wrong-client-decoratorobject-
wrong-client-decorator.default"@client or @operationGroup should decorate namespace or interface in client.tsp""@client or @operationGroup should decorate namespace or interface in client.tsp"