API for creating pastes without showing notifications
Reviewed By: mweststrate Differential Revision: D33277470 fbshipit-source-id: 2ec9ad7d9fc48d7d2da64be3bfc1a66bb5b3a347
This commit is contained in:
committed by
Facebook GitHub Bot
parent
6b8588c5ef
commit
dd4d7bbe7f
@@ -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');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user