ts-node --esm src/foo.ts
esModuleInterop
{ "compilerOptions": { "esModuleInterop": true, }}
let store1_noProxy = Object.assign(store1)
const initialize = () => { const myWebcomponent = document.querySelector('my-webcomponent'); if (!myWebcomponent || !myWebcomponent.componentOnReady) return; console.log(myWebcomponent); myWebcomponent?.componentOnReady().then(() => { myWebcomponent.myPublicMethod({...deps, depFunc: () => // do smth}); })}; document.addEventListener('DOMContentLoaded', initialize);
If a handler is not defined for a given HTTP method, SolidStart will return a 405 Method Not Allowed response.
export const POST = ()=>{return new Response("Error: POST not supported", {status : 405})}