Skip to main content
Version: Latest (Core: 0.57.x, Azure: 0.43.x)

[V] $lib

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

Type declaration​

MemberTypeValue
arm-common-types-incompatible-versionobject...
arm-common-types-incompatible-version.defaultCallableMessage<[string, string]>...
arm-common-types-invalid-versionobject...
arm-common-types-invalid-version.defaultCallableMessage<[string, string]>...
arm-resource-circular-ancestryobject...
arm-resource-circular-ancestry.defaultstring"There is a loop in the ancestry of this resource. Please ensure that the `@parentResource` decorator contains the correct parent resource, and that parentage contains no cycles."
arm-resource-duplicate-base-parameterobject...
arm-resource-duplicate-base-parameter.defaultstring"Only one base parameter type is allowed per resource. Each resource may have only one of `@parentResource`, `@resourceGroupResource`, `@tenantResource`, `@locationResource`, or `@subscriptionResource` decorators."
arm-resource-invalid-base-typeobject...
arm-resource-invalid-base-type.defaultstring"The @armResourceInternal decorator can only be used on a type that ultimately extends TrackedResource, ProxyResource, or ExtensionResource."
arm-resource-missingobject...
arm-resource-missing.defaultCallableMessage<[string]>...
arm-resource-missing-arm-namespaceobject...
arm-resource-missing-arm-namespace.defaultstring"The @armProviderNamespace decorator must be used to define the ARM namespace of the service. This is best applied to the file-level namespace."
arm-resource-missing-name-key-decoratorobject...
arm-resource-missing-name-key-decorator.defaultstring"Resource type 'name' property must have a @key decorator which defines its key name."
arm-resource-missing-name-propertyobject...
arm-resource-missing-name-property.defaultstring"Resource types must include a string property called 'name'."
arm-resource-missing-name-segment-decoratorobject...
arm-resource-missing-name-segment-decorator.defaultstring"Resource type 'name' property must have a @segment decorator which defines its path fragment."
decorator-in-namespaceobject...
decorator-in-namespace.defaultCallableMessage<[string]>...
decorator-param-wrong-typeobject...
decorator-param-wrong-type.armUpdateProviderNamespacestring"The parameter to @armUpdateProviderNamespace must be an operation with a 'provider' parameter."
parent-typeobject...
parent-type.notResourceTypeCallableMessage<[string, string]>...
resource-without-path-and-segmentobject...
resource-without-path-and-segment.defaultstring"Resource types must have a property with '@path` and '@segment' decorators."
single-arm-providerobject...
single-arm-provider.defaultstring"Only one @armProviderNamespace can be declared in a typespec spec at once."
template-type-constraint-no-metobject...
template-type-constraint-no-met.defaultCallableMessage<[string, string, string, string]>...