Skip to content

Commit 99348d1

Browse files
chrisbobbegnprice
authored andcommitted
@sentry/react-native libdef: Replace use of TypeScript's Partial utility
See the doc at https://www.typescriptlang.org/docs/handbook/utility-types.html#partialtype
1 parent e37ca7b commit 99348d1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

flow-typed/@sentry/react-native_v2.x.x.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ declare module '@sentry/react-native' {
193193
setExtras(extras: {| +[key: string]: any |}): this;
194194
}
195195

196-
declare export type CaptureContext = Scope | Partial<ScopeContext> | ((scope: Scope) => Scope);
196+
declare export type CaptureContext = Scope | $Rest<ScopeContext, { ... }> | ((scope: Scope) => Scope);
197197

198198
// Adapted from @sentry/types/src/client.ts, with some specialization.
199199
declare export type Client = {

0 commit comments

Comments
 (0)