API for creating pastes without showing notifications

Reviewed By: mweststrate

Differential Revision: D33277470

fbshipit-source-id: 2ec9ad7d9fc48d7d2da64be3bfc1a66bb5b3a347
This commit is contained in:
Anton Nikolaev
2021-12-22 15:33:08 -08:00
committed by Facebook GitHub Bot
parent 6b8588c5ef
commit dd4d7bbe7f
6 changed files with 37 additions and 17 deletions

View File

@@ -7,20 +7,10 @@
* @format
*/
export default function createPaste(
_input: string,
): Promise<string | undefined> {
return Promise.reject(new Error('Not implemented!'));
}
import type {CreatePasteArgs, CreatePasteResult} from 'flipper-plugin';
export type CreatePasteResult = {
number: number;
url: string;
};
export async function createPasteWithDetails(_details: {
title?: string;
content: string;
}): Promise<CreatePasteResult | undefined> {
return Promise.reject(new Error('Not implemented!'));
export default async function createPaste(
_args: string | CreatePasteArgs,
): Promise<CreatePasteResult | undefined> {
throw new Error('Not implemented');
}