@@ -308,7 +308,7 @@ Upload a file in a streaming manner
308308
309309#### Browser
310310
311- - stategy [ BrowserUploadStategy ] ( ./src/data/browser-upload.ts#L5 )
311+ - strategy [ BrowserUploadStrategy ] ( ./src/data/browser-upload.ts#L5 )
312312- returns [ UploadResponse] ( ./src/data/types.ts#L17 )
313313
314314Example:
@@ -322,9 +322,9 @@ const onProgress = (loaded, total) => {
322322
323323const metadata = { filename: " foo.xt" , mimetype: " text/plain" };
324324
325- const stategy = new BrowserUploadStategy (file, onProgress, metadata);
325+ const strategy = new BrowserUploadStrategy (file, onProgress, metadata);
326326
327- const uploadResponse = data .upload (stategy );
327+ const uploadResponse = data .upload (strategy );
328328
329329const res = await uploadResponse .result ;
330330
@@ -338,14 +338,14 @@ console.info("CID is", res.data);
338338
339339#### Node
340340
341- - stategy [ NodeUploadStategy ] ( ./src/data/node-upload.ts#L9 )
341+ - strategy [ NodeUploadStrategy ] ( ./src/data/node-upload.ts#L9 )
342342- returns [ UploadResponse] ( ./src/data/types.ts#L17 )
343343
344344Example:
345345
346346``` js
347- const stategy = new NodeUploadStategy (" Hello World !" );
348- const uploadResponse = data .upload (stategy );
347+ const strategy = new NodeUploadStrategy (" Hello World !" );
348+ const uploadResponse = data .upload (strategy );
349349
350350const res = await uploadResponse .result ;
351351
0 commit comments