ripple 0.2.105 → 0.2.106

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/types/index.d.ts CHANGED
@@ -26,19 +26,19 @@ export declare const TrackedArray: TrackedArrayConstructor;
26
26
 
27
27
  export declare class Context<T> {
28
28
  constructor(initial_value: T);
29
- get(): T;
30
- set(value: T): void;
29
+ get(): T;
30
+ set(value: T): void;
31
31
  #private;
32
32
  }
33
33
 
34
34
  export declare class TrackedSet<T> extends Set<T> {
35
- isDisjointFrom(other: TrackedSet<T> | Set<T>): boolean;
36
- isSubsetOf(other: TrackedSet<T> | Set<T>): boolean;
37
- isSupersetOf(other: TrackedSet<T> | Set<T>): boolean;
38
- difference(other: TrackedSet<T> | Set<T>): TrackedSet<T>;
39
- intersection(other: TrackedSet<T> | Set<T>): TrackedSet<T>;
40
- symmetricDifference(other: TrackedSet<T> | Set<T>): TrackedSet<T>;
41
- union(other: TrackedSet<T> | Set<T>): TrackedSet<T>;
35
+ isDisjointFrom<U>(other: ReadonlySetLike<U> | TrackedSet<U>): boolean;
36
+ isSubsetOf<U>(other: ReadonlySetLike<U> | TrackedSet<U>): boolean;
37
+ isSupersetOf<U>(other: ReadonlySetLike<U> | TrackedSet<U>): boolean;
38
+ difference<U>(other: ReadonlySetLike<U> | TrackedSet<U>): TrackedSet<T>;
39
+ intersection<U>(other: ReadonlySetLike<U> | TrackedSet<U>): TrackedSet<T & U>;
40
+ symmetricDifference<U>(other: ReadonlySetLike<U> | TrackedSet<U>): TrackedSet<T | U>;
41
+ union<U>(other: ReadonlySetLike<U> | TrackedSet<U>): TrackedSet<T | U>;
42
42
  toJSON(): T[];
43
43
  #private;
44
44
  }
@@ -164,9 +164,39 @@ export interface TrackedObjectConstructor {
164
164
 
165
165
  export declare const TrackedObject: TrackedObjectConstructor;
166
166
 
167
- export class SvelteDate extends Date {
167
+ export class TrackedDate extends Date {
168
168
  constructor(...params: any[]);
169
169
  #private;
170
170
  }
171
171
 
172
- export function Portal<V = HTMLElement>({ target, children: Component }: { target: V }): void;
172
+ declare const REPLACE: unique symbol;
173
+
174
+ export class TrackedURLSearchParams extends URLSearchParams {
175
+ [REPLACE](params: URLSearchParams): void;
176
+ #private;
177
+ }
178
+
179
+ export class TrackedURL extends URL {
180
+ get searchParams(): TrackedURLSearchParams;
181
+ #private;
182
+ }
183
+
184
+ export function createSubscriber(start: () => void | (() => void)): () => void;
185
+
186
+ interface ReactiveValue<V> extends Tracked<V> {
187
+ new(fn: () => Tracked<V>, start: () => void | (() => void)): Tracked<V>;
188
+ /** @private */
189
+ _brand: void;
190
+ }
191
+
192
+ export interface MediaQuery extends Tracked<boolean> {
193
+ new(query: string, fallback?: boolean | undefined): Tracked<boolean>;
194
+ /** @private */
195
+ _brand: void;
196
+ }
197
+
198
+ export declare const MediaQuery: {
199
+ new(query: string, fallback?: boolean | undefined): Tracked<boolean>;
200
+ };
201
+
202
+ export function Portal<V = HTMLElement>({ target, children: Component }: { target: V, children?: Component }): void;