feat(file-system): async read/write (#7671)

This commit is contained in:
Peter Staev
2019-10-02 11:21:18 +03:00
committed by Manol Donev
parent 790870178c
commit 2146ac902f
14 changed files with 849 additions and 29 deletions

View File

@ -17,6 +17,13 @@
export function download(url: string, callback: CompleteCallback, context: any);
}
export module File {
export function readText(path: string, encoding: string, callback: CompleteCallback, context: any);
export function read(path: string, callback: CompleteCallback, context: any);
export function writeText(path: string, content: string, encoding: string, callback: CompleteCallback, context: any);
export function write(path: string, content: native.Array<number>, callback: CompleteCallback, context: any);
}
export module Http {
export class KeyValuePair {
public key: string;