Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

example doesnt' work #92

Closed
chovyprognos opened this issue Jul 12, 2021 · 3 comments
Closed

example doesnt' work #92

chovyprognos opened this issue Jul 12, 2021 · 3 comments

Comments

@chovyprognos
Copy link

$ deno run -Ar --unstable https://deno.land/x/webview/examples/local.ts

Check https://deno.land/x/webview/examples/local.ts
error: TS2345 [ERROR]: Argument of type '{ url: string; }' is not assignable to parameter of type 'boolean | undefined'.
  Type '{ url: string; }' is not assignable to type 'true'.
  { url: `data:text/html,${encodeURIComponent(html)}` },
  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    at https://deno.land/x/webview@0.6.0-pre.0/examples/local.ts:12:3
@zhorsex
Copy link

zhorsex commented Jul 16, 2021

me too

@eliassjogreen
Copy link
Member

#89

@rotu
Copy link

rotu commented Sep 23, 2021

@eliassjogreen regardless of this, the example should typecheck. Could you correct the example code so that it at least doesn't throw this typescript error?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

4 participants