Skip to content

Package context

const PackageContext: ComponentContext<PackageContext>

Accessor

import { usePackage } from "@alloy-js/core";
const myContext = usePackage();

Context interface

outFileMapperRef<(path: string) => string>

A ref for a function that maps a ts file to a JS file.

scopeTSPackageScope

Factory

import { createPackage } from "@alloy-js/typescript";
function createPackage<const T extends PackageDescriptor>(props: CreatePackageProps<T>): PackageRefkeys<T> & SymbolCreator;