UNPKG

@azure-tools/typespec-azure-resource-manager

Version:

TypeSpec Azure Resource Manager library

40 lines 1.64 kB
import type { DecoratorContext, Enum, EnumValue, Model, ModelProperty, Union } from "@typespec/compiler"; /** * Marks an enum as representing the valid `common-types` versions. */ export type ArmCommonTypesVersionsDecorator = (context: DecoratorContext, target: Enum) => void; /** * * * * @param definitionName Definition name * @param version Azure Resource Manager Version * @param referenceFile Reference file */ export type ArmCommonParameterDecorator = (context: DecoratorContext, target: ModelProperty, definitionName?: string, version?: EnumValue | { readonly version: string | EnumValue; readonly isDefault: boolean; } | string, referenceFile?: string) => void; /** * Signifies that a property can be treated as an inline type in emitters */ export type InlineAzureTypeDecorator = (context: DecoratorContext, target: ModelProperty) => void; /** * * * * @param definitionName Definition name * @param version Azure Resource Manager Version * @param referenceFile Reference file */ export type ArmCommonDefinitionDecorator = (context: DecoratorContext, target: Model | Enum | Union, definitionName?: string, version?: EnumValue | { readonly version: string | EnumValue; readonly isDefault: boolean; } | string, referenceFile?: string) => void; export type AzureResourceManagerCommonTypesPrivateDecorators = { armCommonTypesVersions: ArmCommonTypesVersionsDecorator; armCommonParameter: ArmCommonParameterDecorator; inlineAzureType: InlineAzureTypeDecorator; armCommonDefinition: ArmCommonDefinitionDecorator; }; //# sourceMappingURL=Azure.ResourceManager.CommonTypes.Private.d.ts.map