From 6186a7da2f50bb55a04188342cca5d3407e02d44 Mon Sep 17 00:00:00 2001 From: Jordan Eldredge Date: Thu, 12 Dec 2024 13:56:07 -0800 Subject: [PATCH] Make Result type fields readonly Reviewed By: itamark Differential Revision: D67154311 fbshipit-source-id: 861b82e027a37c9de937c2f2a211f609b8247e34 --- packages/relay-runtime/experimental.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/relay-runtime/experimental.js b/packages/relay-runtime/experimental.js index 2b0dda983d6b..c3dd1a7b267e 100644 --- a/packages/relay-runtime/experimental.js +++ b/packages/relay-runtime/experimental.js @@ -43,13 +43,13 @@ export type IdOf = [ export type RelayResolverValue = $NonMaybeType; type ErrorResult = { - ok: false, - errors: $ReadOnlyArray, + +ok: false, + +errors: $ReadOnlyArray, }; type OkayResult = { - ok: true, - value: T, + +ok: true, + +value: T, }; export type Result = OkayResult | ErrorResult;