osra 0.6.0 → 0.6.1
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.
|
@@ -126,6 +126,13 @@ export declare const transferable: {
|
|
|
126
126
|
readonly box: (value: Transferable, _context: RevivableContext<any>) => Transferable;
|
|
127
127
|
readonly revive: (value: BoxedTransferable, _context: RevivableContext<any>) => Transferable;
|
|
128
128
|
};
|
|
129
|
+
export type BoxedBlobGuard = BoxBaseType<'blobGuard'>;
|
|
130
|
+
export declare const blobGuard: {
|
|
131
|
+
readonly type: 'blobGuard';
|
|
132
|
+
readonly isType: (value: unknown) => value is never;
|
|
133
|
+
readonly box: (value: never, context: RevivableContext<any>) => Blob;
|
|
134
|
+
readonly revive: (value: BoxedBlobGuard, _context: RevivableContext<any>) => Blob;
|
|
135
|
+
};
|
|
129
136
|
export type BoxedUnclonable = BoxBaseType<'unclonable'>;
|
|
130
137
|
export declare const unclonable: {
|
|
131
138
|
readonly type: 'unclonable';
|
|
@@ -56,6 +56,11 @@ export declare const defaultRevivableModules: readonly [typeof transfer, typeof
|
|
|
56
56
|
readonly isType: (value: unknown) => value is import("./fallbacks.js").Transferable;
|
|
57
57
|
readonly box: (value: import("./fallbacks.js").Transferable, _context: RevivableContext<any>) => import("./fallbacks.js").Transferable;
|
|
58
58
|
readonly revive: (value: import("./fallbacks.js").BoxedTransferable, _context: RevivableContext<any>) => import("./fallbacks.js").Transferable;
|
|
59
|
+
}, {
|
|
60
|
+
readonly type: 'blobGuard';
|
|
61
|
+
readonly isType: (value: unknown) => value is never;
|
|
62
|
+
readonly box: (value: never, context: RevivableContext<any>) => Blob;
|
|
63
|
+
readonly revive: (value: import("./fallbacks.js").BoxedBlobGuard, _context: RevivableContext<any>) => Blob;
|
|
59
64
|
}, typeof eventTarget, {
|
|
60
65
|
readonly type: 'unclonable';
|
|
61
66
|
readonly isType: (value: unknown) => value is never;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import type { TypedMessagePort, TypedMessagePortEventMap } from './typed-message-channel.js';
|
|
2
2
|
export declare class EventPort<T> {
|
|
3
3
|
private _listeners;
|
|
4
|
-
private _onceListeners;
|
|
5
4
|
addEventListener<K extends keyof TypedMessagePortEventMap<T> & string>(type: K, listener: ((event: TypedMessagePortEventMap<T>[K]) => void) | null, options?: boolean | AddEventListenerOptions): void;
|
|
6
5
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject | null, options?: boolean | AddEventListenerOptions): void;
|
|
7
6
|
removeEventListener<K extends keyof TypedMessagePortEventMap<T> & string>(type: K, listener: ((event: TypedMessagePortEventMap<T>[K]) => void) | null, options?: boolean | EventListenerOptions): void;
|