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 { * * @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