relay-runtime
Version:
A core runtime for building GraphQL-driven applications.
20 lines (16 loc) • 629 B
TypeScript
/**
* 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.
*/
import type { GraphQLTaggedNode } from '../query/GraphQLTag';
import type {KeyType, KeyTypeData} from './RelayStoreTypes';
export function readInlineData<TKey extends KeyType>(
fragmentInput: GraphQLTaggedNode,
fragmentRef: TKey,
): KeyTypeData<TKey>;
export function readInlineData<TKey extends KeyType>(
fragmentInput: GraphQLTaggedNode,
fragmentRef: TKey | null | undefined,
): KeyTypeData<TKey> | null | undefined;