projektwahl / projektwahl-sveltekit

DISCONTINUED: Look at https://github.com/projektwahl/projektwahl-lit
GNU Affero General Public License v3.0
0 stars 0 forks source link

Work #36

Closed mohe2015 closed 3 years ago

mohe2015 commented 3 years ago

PostgresError makes problems with typescript, filed PR upstream. EndpointResponses and Endpoint inputs should all be typed. query.filters needs to be checked. Extend checkPermissions for such things.

mohe2015 commented 3 years ago

postgres types for sql`` are bad

mohe2015 commented 3 years ago
TODO
https://github.com/sveltejs/rfcs/pull/38
https://github.com/sveltejs/language-tools/issues/442
https://github.com/sveltejs/language-tools/issues/273
mohe2015 commented 3 years ago

Try to not throw at all in the networking stuff (and also elsewhere) as this allows typing the error responses. Any throw then is basically a bug

mohe2015 commented 3 years ago

WARNING: do not use yet as the authentication will be converted to the per-field authentication.

mohe2015 commented 3 years ago

TODO: remove all {#awaits and replace by result?