Skip to content

Commit 6186a7d

Browse files
captbaritonefacebook-github-bot
authored andcommitted
Make Result type fields readonly
Reviewed By: itamark Differential Revision: D67154311 fbshipit-source-id: 861b82e027a37c9de937c2f2a211f609b8247e34
1 parent d2e6483 commit 6186a7d

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

packages/relay-runtime/experimental.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,13 +43,13 @@ export type IdOf<A: string, Typename: void | string = void> = [
4343
export type RelayResolverValue<A> = $NonMaybeType<A>;
4444

4545
type ErrorResult<Error> = {
46-
ok: false,
47-
errors: $ReadOnlyArray<Error>,
46+
+ok: false,
47+
+errors: $ReadOnlyArray<Error>,
4848
};
4949

5050
type OkayResult<T> = {
51-
ok: true,
52-
value: T,
51+
+ok: true,
52+
+value: T,
5353
};
5454

5555
export type Result<T, Error> = OkayResult<T> | ErrorResult<Error>;

0 commit comments

Comments
 (0)