relay-runtime
Version:
A core runtime for building GraphQL-driven applications.
19 lines (16 loc) • 390 B
Flow
/**
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @flow strict
* @format
* @oncall relay
*/
;
export interface JSResourceReference<+T> {
+getModuleId: () => string;
+getModuleIfRequired: () => ?T;
+load: () => Promise<T>;
}