mirror of
https://github.com/codedread/bitjs
synced 2025-10-06 02:39:55 +02:00
Remove old HTML archive unit tests - only automated tests going forward
This commit is contained in:
parent
cf26e0a2de
commit
2e1d9177b4
26 changed files with 37 additions and 371 deletions
22
types/archive/common.d.ts
vendored
22
types/archive/common.d.ts
vendored
|
@ -7,6 +7,11 @@
|
|||
*
|
||||
* Copyright(c) 2023 Google Inc.
|
||||
*/
|
||||
/**
|
||||
* @typedef Implementation
|
||||
* @property {MessagePort} hostPort The port the host uses to communicate with the implementation.
|
||||
* @property {Function} disconnectFn A function to call when the port has been disconnected.
|
||||
*/
|
||||
/**
|
||||
* Connects a host to a compress/decompress implementation via MessagePorts. The implementation must
|
||||
* have an exported connect() function that accepts a MessagePort. If the runtime support Workers
|
||||
|
@ -14,8 +19,19 @@
|
|||
* dynamically imports the implementation inside the current JS context (node, bun).
|
||||
* @param {string} implFilename The compressor/decompressor implementation filename relative to this
|
||||
* path (e.g. './unzip.js').
|
||||
* @returns {Promise<MessagePort>} The Promise resolves to the MessagePort connected to the
|
||||
* implementation that the host should use.
|
||||
* @param {Function} disconnectFn A function to run when the port is disconnected.
|
||||
* @returns {Promise<Implementation>} The Promise resolves to the Implementation, which includes the
|
||||
* MessagePort connected to the implementation that the host should use.
|
||||
*/
|
||||
export function getConnectedPort(implFilename: string): Promise<MessagePort>;
|
||||
export function getConnectedPort(implFilename: string): Promise<Implementation>;
|
||||
export type Implementation = {
|
||||
/**
|
||||
* The port the host uses to communicate with the implementation.
|
||||
*/
|
||||
hostPort: MessagePort;
|
||||
/**
|
||||
* A function to call when the port has been disconnected.
|
||||
*/
|
||||
disconnectFn: Function;
|
||||
};
|
||||
//# sourceMappingURL=common.d.ts.map
|
Loading…
Add table
Add a link
Reference in a new issue