Import File implementation
Summary: Implementation was missing for the browser. This provides a default implementation. Reviewed By: aigoncharov Differential Revision: D48311198 fbshipit-source-id: fd067600f571234e0fbccfb90853b62f175ff8fb
This commit is contained in:
committed by
Facebook GitHub Bot
parent
2f5f4911e5
commit
ff6f98fc0d
@@ -32,12 +32,12 @@ import {
|
||||
import {CreatePasteArgs, CreatePasteResult} from './Paste';
|
||||
import {Atom} from '../state/atom';
|
||||
|
||||
export type FileEncoding = 'utf-8' | 'base64';
|
||||
export type FileEncoding = 'utf-8' | 'base64' | 'binary';
|
||||
|
||||
export interface FileDescriptor {
|
||||
data: string;
|
||||
data: string | Uint8Array | undefined;
|
||||
name: string;
|
||||
path?: string;
|
||||
encoding: FileEncoding;
|
||||
}
|
||||
|
||||
export interface DownloadFileResponse extends DownloadFileStartResponse {
|
||||
|
||||
Reference in New Issue
Block a user