Skip to content

[V] $lib

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

Type declaration

NameTypeDefault value
duplicate-keyobject-
duplicate-key.defaultCallableMessage<["resourceName"]>-
duplicate-parent-keyobject-
duplicate-parent-key.defaultCallableMessage<["resourceName", "keyName"]>-
invalid-action-nameobject-
invalid-action-name.default"Action name cannot be empty string."”Action name cannot be empty string.”
not-key-typeobject-
not-key-type.default"Cannot copy keys from a non-key type (KeysOf<T> or ParentKeysOf<T>)"”Cannot copy keys from a non-key type (KeysOf<T> or ParentKeysOf<T>)“
resource-missing-errorobject-
resource-missing-error.defaultCallableMessage<["modelName"]>-
resource-missing-keyobject-
resource-missing-key.defaultCallableMessage<["modelName"]>-
shared-route-unspecified-action-nameobject-
shared-route-unspecified-action-name.defaultCallableMessage<["decoratorName"]>-