Skip to content

Svelte 5: svelte/reactivity is missing type declarations #10816

@ksmsk

Description

@ksmsk

Describe the problem

Title says all. Reactive implementation of Date and Set doesn't have any type declarations.

Describe the proposed solution

i made workaround for my project like this in app.d.ts since they have basically same interface on the surface.

class NativeSet<T> extends Set<T> {}
class NativeDate extends Date {}

declare module 'svelte/reactivity' {
  class Set<T> extends NativeSet<T> {}
  class Date extends NativeDate {}
}

Importance

would make my life easier

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions