Skip to content

Svelte + Typescript = some error #265

@pruginkin

Description

@pruginkin
<script lang="ts"> let w: any </script>
<svelte:window bind:innerWidth={w} />

Typescript error - Type '{ innerWidth: any }' is not assignable to type 'HTMLProps'.
Property 'innerWidth' does not exist on type 'HTMLProps'.ts(2322)
Screenshot_20200702_155243

Metadata

Metadata

Assignees

No one assigned

    Labels

    FixedFixed in master branch. Pending production release.bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions