Skip to content

decl

Create a declaration in the current scope with the given namekey. Only works with basic scopes. Import decl from a specific language library for declaring language-specific symbols.

import { decl } from "@alloy-js/core";
function decl(namekey: Namekey): import("../runtime/component.js").ComponentCreator<{}>;
namekey

Namekey

import(”../runtime/component.js”).ComponentCreator<{}>