File tree 3 files changed +6
-6
lines changed
3 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -47,7 +47,7 @@ let modPromise = null;
47
47
/**
48
48
* Loads and instantiates the WASM module asynchronously
49
49
*
50
- * @param {URL } url - The URL to fetch the WebAssembly module from
50
+ * @param {URL | string } url - The URL to fetch the WebAssembly module from
51
51
* @returns {Promise<void> }
52
52
*/
53
53
async function loadModuleAsync ( url ) {
@@ -66,7 +66,7 @@ async function loadModuleAsync(url) {
66
66
*
67
67
* Returns a promise which will resolve once the other methods are ready.
68
68
*
69
- * @param {URL } [url] - The URL to fetch the WebAssembly module from. If not provided, a default URL will be used.
69
+ * @param {URL | string } [url] - The URL to fetch the WebAssembly module from. If not provided, a default URL will be used.
70
70
* @returns {Promise<void> }
71
71
*/
72
72
async function initAsync ( url = defaultURL ) {
Original file line number Diff line number Diff line change @@ -43,10 +43,10 @@ export * from "./pkg/matrix_sdk_crypto_wasm.js";
43
43
* Load the WebAssembly module in the background, if it has not already been loaded.
44
44
*
45
45
* Returns a promise which will resolve once the other methods are ready.
46
- * @param {URL } [url] - The URL to fetch the WebAssembly module from. If not provided, a default URL will be used.
46
+ * @param {URL | string } [url] - The URL to fetch the WebAssembly module from. If not provided, a default URL will be used.
47
47
* @returns {Promise<void> }
48
48
*/
49
- export declare function initAsync ( url ?: URL ) : Promise < void > ;
49
+ export declare function initAsync ( url ?: URL | string ) : Promise < void > ;
50
50
51
51
// The auto-generated typescript definitions are a good start, but could do with tightening up in a lot of areas.
52
52
// The following is a manually-curated set of typescript definitions.
Original file line number Diff line number Diff line change @@ -52,7 +52,7 @@ let modPromise = null;
52
52
/**
53
53
* Loads and instantiates the WASM module asynchronously
54
54
*
55
- * @param {URL } url - The URL to fetch the WebAssembly module from
55
+ * @param {URL | string } url - The URL to fetch the WebAssembly module from
56
56
* @returns {Promise<void> }
57
57
*/
58
58
async function loadModuleAsync ( url ) {
@@ -71,7 +71,7 @@ async function loadModuleAsync(url) {
71
71
*
72
72
* Returns a promise which will resolve once the other methods are ready.
73
73
*
74
- * @param {URL } [url] - The URL to fetch the WebAssembly module from. If not provided, a default URL will be used.
74
+ * @param {URL | string } [url] - The URL to fetch the WebAssembly module from. If not provided, a default URL will be used.
75
75
* @returns {Promise<void> }
76
76
*/
77
77
export async function initAsync ( url = defaultURL ) {
You can’t perform that action at this time.
0 commit comments