Migrate metrics
Summary: Had to mess with the tagged union we had, to distinguish based on a string rather a bool which is a bit rubbish. Reviewed By: danielbuechele Differential Revision: D16764797 fbshipit-source-id: c33536f17b0705ca40abef8448802f9961c4c114
This commit is contained in:
committed by
Facebook Github Bot
parent
46e0abecdf
commit
2a34125413
@@ -17,23 +17,24 @@ export function logoutUser(): Promise<void> {
|
||||
return Promise.reject();
|
||||
}
|
||||
|
||||
export type DataExportResult = {
|
||||
id: string;
|
||||
os: 'string';
|
||||
deviceType: string;
|
||||
plugins: string[];
|
||||
fileUrl: string;
|
||||
flipperUrl: string;
|
||||
};
|
||||
|
||||
export type DataExportError = {
|
||||
error: string;
|
||||
error_class: string;
|
||||
stacktrace: string;
|
||||
};
|
||||
|
||||
export async function shareFlipperData(
|
||||
trace: string,
|
||||
): Promise<
|
||||
| {
|
||||
id: string;
|
||||
os: 'string';
|
||||
deviceType: string;
|
||||
plugins: string[];
|
||||
fileUrl: string;
|
||||
flipperUrl: string;
|
||||
}
|
||||
| {
|
||||
error: string;
|
||||
error_class: string;
|
||||
stacktrace: string;
|
||||
}
|
||||
> {
|
||||
): Promise<DataExportError | DataExportResult> {
|
||||
new Notification('Feature not implemented');
|
||||
return Promise.reject();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user