diff --git a/bowser/bowser-tests.ts b/bowser/bowser-tests.ts index 910b716e0f..e8b122a5a9 100644 --- a/bowser/bowser-tests.ts +++ b/bowser/bowser-tests.ts @@ -1,19 +1,9 @@ - - -import Bowser = require('bowser'); - -Bowser.msedge === true; -Bowser.test(['msie']) === true; -Bowser.a === Bowser.c; -Bowser.osversion > 10; -Bowser.osversion === '10.1A'; - bowser.msedge === true; bowser.test(['msie']) === true; bowser.a === bowser.c; bowser.osversion > 10; bowser.osversion === '10.1A'; bowser.compareVersions(['9.0', '10']); -bowser() === {android: true, x: true}; +bowser() === {android: true, x: true}; bowser.check({msie: "11"}, window.navigator.userAgent); bowser.isUnsupportedBrowser({msie: "10"}, window.navigator.userAgent); \ No newline at end of file diff --git a/bowser/index.d.ts b/bowser/index.d.ts index 360e7ddc63..163342a631 100644 --- a/bowser/index.d.ts +++ b/bowser/index.d.ts @@ -3,11 +3,11 @@ // Definitions by: Paulo Cesar // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped -declare var def: BowserModule.IBowser; -export = def; +declare const bowser: bowser.IBowser; +export = bowser; export as namespace bowser; -declare namespace BowserModule { +declare namespace bowser { export interface IBowserOS { mac: boolean; diff --git a/cordova-plugin-contacts/index.d.ts b/cordova-plugin-contacts/index.d.ts index 90b21ae2bb..6728b991d6 100644 --- a/cordova-plugin-contacts/index.d.ts +++ b/cordova-plugin-contacts/index.d.ts @@ -1,8 +1,8 @@ -// Type definitions for Apache Cordova Contacts plugin. +// Type definitions for Apache Cordova Contacts plugin // Project: https://github.com/apache/cordova-plugin-contacts // Definitions by: Microsoft Open Technologies, Inc. // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped -// +// // Copyright (c) Microsoft Open Technologies, Inc. // Licensed under the MIT license. @@ -204,7 +204,7 @@ declare var ContactName: { * The ContactField object is a reusable component that represents contact fields generically. * Each ContactField object contains a value, type, and pref property. A Contact object stores * several properties in ContactField[] arrays, such as phone numbers and email addresses. - * + * * In most instances, there are no pre-determined values for a ContactField object's type attribute. * For example, a phone number can specify type values of home, work, mobile, iPhone, * or any other value that is supported by a particular device platform's contact database. diff --git a/cordova-plugin-file/index.d.ts b/cordova-plugin-file/index.d.ts index f9471eda72..3243632714 100644 --- a/cordova-plugin-file/index.d.ts +++ b/cordova-plugin-file/index.d.ts @@ -1,4 +1,4 @@ -// Type definitions for Apache Cordova File System plugin. +// Type definitions for Apache Cordova File System plugin // Project: https://github.com/apache/cordova-plugin-file // Definitions by: Microsoft Open Technologies, Inc. // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped diff --git a/esprima/esprima-tests.ts b/esprima/esprima-tests.ts index 07c8d3f6ad..95414197c2 100644 --- a/esprima/esprima-tests.ts +++ b/esprima/esprima-tests.ts @@ -5,7 +5,7 @@ import esprima = require('esprima'); import * as ESTree from 'estree'; var token: esprima.Token; -var comment: esprima.Comment; +var comment: ESTree.Comment; var program: ESTree.Program; var string: string; diff --git a/esprima/index.d.ts b/esprima/index.d.ts index 312392e4b5..2b89de4105 100644 --- a/esprima/index.d.ts +++ b/esprima/index.d.ts @@ -21,10 +21,6 @@ declare namespace esprima { value: string; } - interface Comment extends ESTree.Node { - value: string; - } - interface Options { loc?: boolean; range?: boolean; diff --git a/inversify-devtools/inversify-devtools.d.ts b/inversify-devtools/index.d.ts similarity index 100% rename from inversify-devtools/inversify-devtools.d.ts rename to inversify-devtools/index.d.ts diff --git a/inversify-devtools/tsconfig.json b/inversify-devtools/tsconfig.json index 7493d3ee13..9620cb1f86 100644 --- a/inversify-devtools/tsconfig.json +++ b/inversify-devtools/tsconfig.json @@ -14,7 +14,7 @@ "forceConsistentCasingInFileNames": true }, "files": [ - "inversify-devtools.d.ts", + "index.d.ts", "inversify-devtools-test.ts" ] } \ No newline at end of file diff --git a/karma-chai-sinon/karma-chai-sinon.d.ts b/karma-chai-sinon/karma-chai-sinon.d.ts index 4d44d0ce2d..5f1395c583 100644 --- a/karma-chai-sinon/karma-chai-sinon.d.ts +++ b/karma-chai-sinon/karma-chai-sinon.d.ts @@ -4,7 +4,7 @@ // Definitions: https://github.com/borisyankov/DefinitelyTyped /// -import Sinon = require("Sinon"); +import Sinon = require("sinon"); declare global { var should: Chai.Should; diff --git a/masonry-layout/masonry-layout-tests.ts b/masonry-layout/masonry-layout-tests.ts index 65f629db10..ac25f08db2 100644 --- a/masonry-layout/masonry-layout-tests.ts +++ b/masonry-layout/masonry-layout-tests.ts @@ -1,8 +1,4 @@ // test file for masonry-layout.d.ts - -/// -/// - //import {Masonry} from "./masonry-layout.d.ts"; // responsive layouts @@ -44,5 +40,5 @@ function testExtendedOptions() { transitionDuration: '0.4s', resize: true, initLayout: true - }); -} + }); +} diff --git a/react-scrollbar/react-scrollbar.d.ts b/react-scrollbar/react-scrollbar.d.ts index 1abc23921b..dcfc90d02e 100644 --- a/react-scrollbar/react-scrollbar.d.ts +++ b/react-scrollbar/react-scrollbar.d.ts @@ -8,16 +8,16 @@ declare module "react-scrollbar" { interface ScrollAreaProps extends React.Props { className?: string, - style?: __React.CSSProperties, + style?: React.CSSProperties, speed?: number, contentClassName?: string, - contentStyle?: __React.CSSProperties, + contentStyle?: React.CSSProperties, vertical?: boolean, - verticalContainerStyle?: __React.CSSProperties, - verticalScrollbarStyle?: __React.CSSProperties, + verticalContainerStyle?: React.CSSProperties, + verticalScrollbarStyle?: React.CSSProperties, horizontal?: boolean, - horizontalContainerStyle?: __React.CSSProperties, - horizontalScrollbarStyle?: __React.CSSProperties, + horizontalContainerStyle?: React.CSSProperties, + horizontalScrollbarStyle?: React.CSSProperties, onScroll?: (value: {leftPosition: number, topPosition: number, containerHeight: number, containerWidth: number, realHeight: number, realWidth: number}) => void, contentWindow?: any, ownerDocument?: any,