synapse-react-client
Version:
[](https://badge.fury.io/js/synapse-react-client) [](https://github.com/prettier/prettie
15 lines • 768 B
TypeScript
import { FileEntity } from '@sage-bionetworks/synapse-types';
type LinkToURLProps = {
/** The ID of the FileEntity that should be updated, or container entity in which a new FileEntity should be created. */
entityId: string;
/** Invoked when the validity of the form changes (e.g. to disable/activate a submit button) */
onIsValidChanged?: (isValid: boolean) => void;
/** Invoked when the call to create or update the entity succeeds. */
onSuccess?: (newOrUpdatedEntity: FileEntity) => void;
};
export type LinkToURLHandle = {
submit: () => void;
};
export declare const LinkToURL: import("react").ForwardRefExoticComponent<LinkToURLProps & import("react").RefAttributes<LinkToURLHandle>>;
export {};
//# sourceMappingURL=LinkToURL.d.ts.map