Skip to content

PropertyDeclaration

Declares a Python property with optional getter, setter, and deleter methods.

import { PropertyDeclaration } from "@alloy-js/python";
<PropertyDeclaration
abstract
doc={Children}
name="string"
refkey={Refkey}
type={Children}
>
{children}
</PropertyDeclaration>
abstractoptionalboolean
childrenoptionalChildren
docoptionalChildren
namestring
refkeyoptionalRefkey
typeoptionalChildren