For those who might want to know, I'll leave it here
post({ request }: RequestEvent) {
Reason: it's destructure pattern, we need to specify type of object that will be passed to post function, and here we are looking for request property which is property of RequestEvent.
PS. RequestEvent is a type of Svelte Kit library.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Thanks for your reply, it's ok, I got answer.
For those who might want to know, I'll leave it here
post({ request }: RequestEvent) {
Reason: it's destructure pattern, we need to specify type of object that will be passed to
post
function, and here we are looking forrequest
property which is property ofRequestEvent
.PS. RequestEvent is a type of Svelte Kit library.