Typescript function returntype

I have this function declaration inside af module: declare module ‘picoapp’ { export function component(node?: HTMLElement): void } and then using it like this in a .ts file export default component((node: HTMLElement) => { // All sorts of TS/JS here }) But VSCode gives me this warning: Argument of type ‘(node: HTMLElement) => void’ is… Read More Typescript function returntype