Declaration
A Python declaration, which can be a class, function, variable, etc.
import { Declaration } from "@alloy-js/python";
<Declaration name={string | Namekey} nameKind={PythonElements} symbol={PythonOutputSymbol} />import { Declaration } from "@alloy-js/python/stc";
Declaration({ name: string | Namekey, nameKind: PythonElements, symbol: PythonOutputSymbol,}).children(children)| name | optional string | Namekey | The name of this declaration. |
| nameKind | optional PythonElements | The name policy kind to apply to the declaration. |
| symbol | optional PythonOutputSymbol | The symbol to use for this declaration. |
Remarks
Section titled “Remarks”This component is used to create a declaration with a symbol that can be referenced in the code.