UNPKG

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

Version:

TypeSpec Azure Resource Manager library

11 lines 552 B
import { type ModelProperty, type Program } from "@typespec/compiler"; /** * Determines if a property is read-only, which is defined as having the * only the `Lifecycle.Read` modifier. * * If there is more than one Lifecycle visibility modifier active on the property, * then the property is not read-only. For example, `@visibility(Lifecycle.Read, Lifecycle.Update)` * does not designate a read-only property. */ export declare function isReadonlyProperty(program: Program, property: ModelProperty): boolean; //# sourceMappingURL=utils.d.ts.map