Skip to content

Commit 3fcb0e8

Browse files
committed
Updated the text module with ambient declaration.
1 parent 36c1910 commit 3fcb0e8

3 files changed

Lines changed: 11 additions & 9 deletions

File tree

file-system/file-system-access.android.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import appModule = require("application");
2-
import textModule = require("text/text");
2+
import textModule = require("text");
33

44
export class FileSystemAccess {
55
private _pathSeparator = java.io.File.separator.toString();

file-system/file-system-access.ios.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import app_module = require("application");
22
import utilsModule = require("utils/utils_ios");
3-
import textModule = require("text/text");
3+
import textModule = require("text");
44

55
// TODO: Implement all the APIs receiving callback using async blocks
66
// TODO: Check whether we need try/catch blocks for the iOS implementation

text/text.d.ts

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,14 @@
11
/**
22
* Defines the supported character encodings.
33
*/
4-
export declare module encoding {
5-
export var ISO_8859_1: any;
6-
export var US_ASCII: any;
7-
export var UTF_16: any;
8-
export var UTF_16BE: any;
9-
export var UTF_16LE: any;
10-
export var UTF_8: any;
4+
declare module "text" {
5+
export module encoding {
6+
export var ISO_8859_1: any;
7+
export var US_ASCII: any;
8+
export var UTF_16: any;
9+
export var UTF_16BE: any;
10+
export var UTF_16LE: any;
11+
export var UTF_8: any;
12+
}
1113
}
1214

0 commit comments

Comments
 (0)