sveltejs / sapper

The next small thing in web development, powered by Svelte
https://sapper.svelte.dev
MIT License
7.01k stars 435 forks source link

The examples in the documentation contain type errors #1767

Open lovasoa opened 3 years ago

lovasoa commented 3 years ago

The documentation contains the following example :

sapper.start({
    target: document.querySelector('#sapper')
});

However, document.querySelector('#sapper') can return null, but sapper.start does not accept null. It would be great to either

This would allow the documentation examples to be copy-pasted in typescript environment without type errors.