Skip to content

Commit 92c884e

Browse files
Anwesha NaskarAnwesha Naskar
authored andcommitted
🐛 Adds missing blob type
1 parent 291bdc4 commit 92c884e

File tree

4 files changed

+20
-2
lines changed

4 files changed

+20
-2
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,4 +31,5 @@ authorization/*.js
3131
index.js
3232
.nyc_output
3333
**/*.d.ts
34+
!*/blob.d.ts
3435
**/*.js.map

lib/blob.d.ts

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
interface Blob {
2+
readonly size: number;
3+
readonly type: string;
4+
msClose(): void;
5+
msDetachStream(): any;
6+
slice(start?: number, end?: number, contentType?: string): Blob;
7+
}
8+
9+
declare var Blob: {
10+
prototype: Blob;
11+
new (blobParts?: any[], options?: BlobPropertyBag): Blob;
12+
};
13+
14+
interface BlobPropertyBag {
15+
type?: string;
16+
endings?: string;
17+
}

lib/content-type.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { extname } from 'path';
22

3-
/// <reference path="../blob.d.ts" />
3+
/// <reference path="blob.d.ts" />
44

55
// This module attempts to identify common content-types based on the filename or header
66
// It is not exhaustive, and for best results, you should always manually specify the content-type option.

speech-to-text/v1-generated.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
* See the License for the specific language governing permissions and
1414
* limitations under the License.
1515
*/
16-
/// <reference path="../blob.d.ts" />
16+
/// <reference path="../lib/blob.d.ts" />
1717

1818
import * as extend from 'extend';
1919
import { RequestResponse } from 'request';

0 commit comments

Comments
 (0)