Skip to content

Commit

Permalink
Make Result type fields readonly
Browse files Browse the repository at this point in the history
Reviewed By: itamark

Differential Revision: D67154311

fbshipit-source-id: 861b82e027a37c9de937c2f2a211f609b8247e34
  • Loading branch information
captbaritone authored and facebook-github-bot committed Dec 12, 2024
1 parent d2e6483 commit 6186a7d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions packages/relay-runtime/experimental.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,13 +43,13 @@ export type IdOf<A: string, Typename: void | string = void> = [
export type RelayResolverValue<A> = $NonMaybeType<A>;

type ErrorResult<Error> = {
ok: false,
errors: $ReadOnlyArray<Error>,
+ok: false,
+errors: $ReadOnlyArray<Error>,
};

type OkayResult<T> = {
ok: true,
value: T,
+ok: true,
+value: T,
};

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

0 comments on commit 6186a7d

Please sign in to comment.