svelte-type-checker-vscode icon indicating copy to clipboard operation
svelte-type-checker-vscode copied to clipboard

#await :then support

Open Zerowalker opened this issue 5 years ago • 1 comments

#await then doesn't seem to be supported

Example code:

{#await foo()}
    .....
  {:then}
      async function completed successfully!
  {:catch err}
      async function failed:(
{/await}

{:then} will be showed with an error, but it shouldn't as far as i know

let _$$p: Promise<void> ',' expected.svelte-type-checker(1005)

Zerowalker avatar May 05 '20 15:05 Zerowalker

Thanks for the report!. It certainly should work, so there is a problem with the transform I am using. I'll see what I can do

On Wed, 6 May 2020, 1:59 am Zerowalker, [email protected] wrote:

#await then doesn't seem to be supported

Example code:

{#await foo()} ..... {:then} async function completed successfully! {:catch err} async function failed:( {/await}

{:then} will be showed with an error, but it shouldn't as far as i know

let _$$p: Promise ',' expected.svelte-type-checker(1005)

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/halfnelson/svelte-type-checker-vscode/issues/9, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAEGS5FX6CFJJOHZG53HZLTRQAZVBANCNFSM4MZWIKTQ .

halfnelson avatar May 05 '20 21:05 halfnelson