TheBejbiborn
Declaration merging for external packages
To make this thread more generic for module augumentation (not strictly preact / deno fresh) could you explain how did you get to the
preact.createElement.JSX
?
(for anybody looking for the module augumentation typescript docs: https://www.typescriptlang.org/docs/handbook/declaration-merging.html#module-augmentation)8 replies
Declaration merging for external packages
I'm not sure if there is a need for any particular setup / repo to test this. It's not even that strictly related to Fresh, I think it's a generic topic (declaration merging with namespaces declared by external packages).
I think you can start a new empty Fresh project with
deno run -A -r https://fresh.deno.dev
and just try to override preact's JSXInternal namespace with anything.8 replies