diff --git a/filewriter/index.d.ts b/filewriter/index.d.ts
index e16dc97792..376d94b481 100644
--- a/filewriter/index.d.ts
+++ b/filewriter/index.d.ts
@@ -1,7 +1,7 @@
// Type definitions for File API: Writer
// Project: http://www.w3.org/TR/file-writer-api/
-// Definitions by: Kon
-// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
+// Definitions by: Kon
+// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
/**
* This interface provides methods to monitor the asynchronous writing of blobs to disk using progress events [PROGRESS-EVENTS] and event handler attributes.
@@ -21,25 +21,25 @@ interface FileSaver extends EventTarget {
*
Terminate this algorithm.
*
*/
- abort():void;
+ abort(): void;
/**
* The blob is being written.
* @readonly
*/
- INIT:number;
+ INIT: number;
/**
* The object has been constructed, but there is no pending write.
* @readonly
*/
- WRITING:number;
+ WRITING: number;
/**
* The entire Blob has been written to the file, an error occurred during the write, or the write was aborted using abort(). The FileSaver is no longer writing the blob.
* @readonly
*/
- DONE:number;
+ DONE: number;
/**
* The FileSaver object can be in one of 3 states. The readyState attribute, on getting, must return the current state, which must be one of the following values:
@@ -50,43 +50,43 @@ interface FileSaver extends EventTarget {
*
* @readonly
*/
- readyState:number;
+ readyState: number;
/**
* The last error that occurred on the FileSaver.
- * @readonly
+ * @readonly
*/
- error:DOMError;
+ error: Error;
/**
* Handler for writestart events
*/
- onwritestart:Function;
+ onwritestart: (event: ProgressEvent) => void;
/**
* Handler for progress events.
*/
- onprogress:Function;
+ onprogress: (event: ProgressEvent) => void;
/**
* Handler for write events.
*/
- onwrite:Function;
+ onwrite: (event: ProgressEvent) => void;
/**
* Handler for abort events.
*/
- onabort:Function;
+ onabort: (event: ProgressEvent) => void;
/**
* Handler for error events.
*/
- onerror:Function;
+ onerror: (event: ProgressEvent) => void;
/**
* Handler for writeend events.
*/
- onwriteend:Function;
+ onwriteend: (event: ProgressEvent) => void;
}
declare var FileSaver: {
@@ -113,7 +113,7 @@ interface FileWriter extends FileSaver {
length:number;
/**
- * Write the supplied data to the file at position.
+ * Write the supplied data to the file at position.
* @param data The blob to write.
*/
write(data:Blob):void;
@@ -171,6 +171,6 @@ interface FileWriterSync {
*
*
* @param size The size to which the length of the file is to be adjusted, measured in bytes.
- */
+ */
truncate(size:number):void;
}
diff --git a/ng-cordova/camera.d.ts b/ng-cordova/camera.d.ts
index 8f6f822fab..580483dbd5 100644
--- a/ng-cordova/camera.d.ts
+++ b/ng-cordova/camera.d.ts
@@ -3,7 +3,7 @@
// Definitions by: Jacques Kang
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
-///
+///
///
declare namespace ngCordova {
diff --git a/ng-cordova/file.d.ts b/ng-cordova/file.d.ts
index a76a6895ae..8ebe777c14 100644
--- a/ng-cordova/file.d.ts
+++ b/ng-cordova/file.d.ts
@@ -4,7 +4,7 @@
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
///
-///
+///
declare namespace ngCordova {
export interface IFileService {
diff --git a/ng-cordova/fileTransfer.d.ts b/ng-cordova/fileTransfer.d.ts
index 075e817e10..d98e4b62d8 100644
--- a/ng-cordova/fileTransfer.d.ts
+++ b/ng-cordova/fileTransfer.d.ts
@@ -4,7 +4,7 @@
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
///
-///
+///
///
declare namespace ngCordova {
diff --git a/ng-cordova/tsconfig.json b/ng-cordova/tsconfig.json
new file mode 100644
index 0000000000..06dae1ab12
--- /dev/null
+++ b/ng-cordova/tsconfig.json
@@ -0,0 +1,19 @@
+{
+ "files": [
+ "index.d.ts"
+ ],
+ "compilerOptions": {
+ "module": "commonjs",
+ "target": "es6",
+ "noImplicitAny": true,
+ "strictNullChecks": false,
+ "baseUrl": "../",
+ "experimentalDecorators": true,
+ "typeRoots": [
+ "../"
+ ],
+ "types": [],
+ "noEmit": true,
+ "forceConsistentCasingInFileNames": true
+ }
+}
\ No newline at end of file