Package context
const PackageContext: ComponentContext<PackageContext>
Accessor
import { usePackage } from "@alloy-js/core";
const myContext = usePackage();
Context interface
outFileMapper | Ref<(path: string) => string> A ref for a function that maps a ts file to a JS file. |
scope | TSPackageScope |
Factory
import { createPackage } from "@alloy-js/typescript";
function createPackage<const T extends PackageDescriptor>(props: CreatePackageProps<T>): PackageRefkeys<T> & SymbolCreator;