Skip to content

Commit

Permalink
fix types
Browse files Browse the repository at this point in the history
  • Loading branch information
trueadm committed Dec 18, 2024
1 parent 768251e commit 823f7ff
Showing 1 changed file with 11 additions and 13 deletions.
24 changes: 11 additions & 13 deletions packages/svelte/types/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1876,10 +1876,10 @@ declare module 'svelte/motion' {
* const tween = Tween.of(() => number);
* </script>
* ```
*
*
*/
static of<U>(fn: () => U, options?: TweenedOptions<U> | undefined): Tween<U>;

constructor(value: T, options?: TweenedOptions<T>);
/**
* Sets `tween.target` to `value` and returns a `Promise` that resolves if and when `tween.current` catches up to it.
Expand All @@ -1898,21 +1898,21 @@ declare module 'svelte/motion' {

declare module 'svelte/reactivity' {
export class SvelteDate extends Date {

constructor(...params: any[]);
#private;
}
export class SvelteSet<T> extends Set<T> {

constructor(value?: Iterable<T> | null | undefined);

add(value: T): this;
#private;
}
export class SvelteMap<K, V> extends Map<K, V> {

constructor(value?: Iterable<readonly [K, V]> | null | undefined);

set(key: K, value: V): this;
#private;
}
Expand All @@ -1922,7 +1922,7 @@ declare module 'svelte/reactivity' {
}
const REPLACE: unique symbol;
export class SvelteURLSearchParams extends URLSearchParams {

[REPLACE](params: URLSearchParams): void;
#private;
}
Expand Down Expand Up @@ -1994,7 +1994,7 @@ declare module 'svelte/reactivity' {
*/
export function createSubscriber(start: (update: () => void) => (() => void) | void): () => void;
class ReactiveValue<T> {

constructor(fn: () => T, onsubscribe: (update: () => void) => void);
get current(): T;
#private;
Expand Down Expand Up @@ -2059,7 +2059,7 @@ declare module 'svelte/reactivity/window' {
get current(): number | undefined;
};
class ReactiveValue<T> {

constructor(fn: () => T, onsubscribe: (update: () => void) => void);
get current(): T;
#private;
Expand Down Expand Up @@ -2935,8 +2935,6 @@ declare namespace $effect {
*/
export function tracking(): boolean;

export function active(): boolean;

/**
* The `$effect.root` rune is an advanced feature that creates a non-tracked scope that doesn't auto-cleanup. This is useful for
* nested effects that you want to manually control. This rune also allows for creation of effects outside of the component
Expand Down Expand Up @@ -3071,4 +3069,4 @@ declare namespace $inspect {
*/
declare function $host<El extends HTMLElement = HTMLElement>(): El;

//# sourceMappingURL=index.d.ts.map
//# sourceMappingURL=index.d.ts.map

0 comments on commit 823f7ff

Please sign in to comment.