Skip to content

Commit

Permalink
Update globals.d.ts for Blob.slice() contentType declaration (#38163)
Browse files Browse the repository at this point in the history
Summary:
For the contentType Parameter of the method slice in Class Blob which was fixed for
#38078
 the typescript declaration is missing.

## Changelog:
[GENERAL] [ADDED] - Added contentType parameter to Blob declaration

<!-- Help reviewers and the release process by writing your own changelog entry.

Pick one each for the category and type tags:

For more details, see:
https://reactnative.dev/contributing/changelogs-in-pull-requests

Pull Request resolved: #38163

Test Plan: I ran yarn run test-typescript and check with Webstorm and VSCode.

Reviewed By: rshest

Differential Revision: D47228992

Pulled By: javache

fbshipit-source-id: fd767bb47c5e64657bfafba4c84d1d8671857109
  • Loading branch information
trashcoder authored and facebook-github-bot committed Jul 6, 2023
1 parent f6c91bf commit ff40138
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/react-native/types/modules/globals.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ declare interface WindowOrWorkerGlobalScope {
interface Blob {
readonly size: number;
readonly type: string;
slice(start?: number, end?: number): Blob;
slice(start?: number, end?: number, contentType?: string): Blob;
}

interface BlobOptions {
Expand Down

0 comments on commit ff40138

Please sign in to comment.