For some reason I can never find this anything about this, so here so I don't forget.
SomeElement.ts
declare class Class extends HTMLElement {
constructor ()
}
declare global {
var SomeElement : typeof Class
}tsconfig.json
{
"compilerOptions" : {
"paths" : {
"CustomElement" : [ "./CustomElement/mod" ] ,
}
}
}Build.sh
bun build \
--external "CustomElement" \
...