Skip to content

Conversation

@bterlson
Copy link
Contributor

This lets you write code like:

const hi = namekey("hi");
<ts.SourceFile path="test1.ts">
  {code`
    const ${decl(hi)} = 12;
    console.log(${hi});
  `}
</ts.SourceFile>

@github-actions
Copy link
Contributor

github-actions bot commented Oct 27, 2025

All changed packages have been documented.

  • @alloy-js/core
  • @alloy-js/typescript
Show changes

@alloy-js/core - fix ✏️

Fix a bug where tracing would track additional signals.

@alloy-js/typescript - feature ✏️

Introduce decl, declType, and declMember functions to declare a symbol given a namekey and return the new symbol name. Allows avoiding the use of declaration components if desired.

@bterlson bterlson merged commit 9fa8102 into alloy-framework:main Oct 27, 2025
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant