UNPKG

synapse-react-client

Version:

[![npm version](https://badge.fury.io/js/synapse-react-client.svg)](https://badge.fury.io/js/synapse-react-client) [![code style: prettier](https://img.shields.io/badge/code_style-prettier-ff69b4.svg?style=flat-square)](https://github.com/prettier/prettie

11 lines 745 B
import { Entity } from '@sage-bionetworks/synapse-types'; import { QueryOptions } from '@tanstack/react-query'; /** * Follows a Synapse entity ID to the end of the chain of links * @param synId the ID of a Synapse entity that may be a link * @returns the ID of the entity at the end of the chain of links * @throws an error if a link is found that does not resolve, or if a cycle is found */ export declare function resolveLinkEntity(synId: string, versionNumber?: number, accessToken?: string): Promise<Entity>; export declare function useResolveLinkEntity(synId: string, versionNumber?: number, options?: QueryOptions<Entity>): import("@tanstack/react-query").UseQueryResult<Entity, Error>; //# sourceMappingURL=ResolveLinkEntity.d.ts.map