mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-03-29 00:18:20 +08:00
Fix tests
This commit is contained in:
@@ -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() === <BowserModule.IBowserDetection>{android: true, x: true};
|
||||
bowser() === <bowser.IBowserDetection>{android: true, x: true};
|
||||
bowser.check({msie: "11"}, window.navigator.userAgent);
|
||||
bowser.isUnsupportedBrowser({msie: "10"}, window.navigator.userAgent);
|
||||
6
bowser/index.d.ts
vendored
6
bowser/index.d.ts
vendored
@@ -3,11 +3,11 @@
|
||||
// Definitions by: Paulo Cesar <https://github.com/pocesar>
|
||||
// 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;
|
||||
|
||||
6
cordova-plugin-contacts/index.d.ts
vendored
6
cordova-plugin-contacts/index.d.ts
vendored
@@ -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. <http://msopentech.com>
|
||||
// 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.
|
||||
|
||||
2
cordova-plugin-file/index.d.ts
vendored
2
cordova-plugin-file/index.d.ts
vendored
@@ -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. <http://msopentech.com>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
4
esprima/index.d.ts
vendored
4
esprima/index.d.ts
vendored
@@ -21,10 +21,6 @@ declare namespace esprima {
|
||||
value: string;
|
||||
}
|
||||
|
||||
interface Comment extends ESTree.Node {
|
||||
value: string;
|
||||
}
|
||||
|
||||
interface Options {
|
||||
loc?: boolean;
|
||||
range?: boolean;
|
||||
|
||||
@@ -14,7 +14,7 @@
|
||||
"forceConsistentCasingInFileNames": true
|
||||
},
|
||||
"files": [
|
||||
"inversify-devtools.d.ts",
|
||||
"index.d.ts",
|
||||
"inversify-devtools-test.ts"
|
||||
]
|
||||
}
|
||||
2
karma-chai-sinon/karma-chai-sinon.d.ts
vendored
2
karma-chai-sinon/karma-chai-sinon.d.ts
vendored
@@ -4,7 +4,7 @@
|
||||
// Definitions: https://github.com/borisyankov/DefinitelyTyped
|
||||
|
||||
/// <reference types="chai" />
|
||||
import Sinon = require("Sinon");
|
||||
import Sinon = require("sinon");
|
||||
|
||||
declare global {
|
||||
var should: Chai.Should;
|
||||
|
||||
@@ -1,8 +1,4 @@
|
||||
// test file for masonry-layout.d.ts
|
||||
|
||||
/// <reference path="../jquery/jquery.d.ts" />
|
||||
/// <reference path="./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
|
||||
});
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
12
react-scrollbar/react-scrollbar.d.ts
vendored
12
react-scrollbar/react-scrollbar.d.ts
vendored
@@ -8,16 +8,16 @@
|
||||
declare module "react-scrollbar" {
|
||||
interface ScrollAreaProps extends React.Props<ScrollArea> {
|
||||
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,
|
||||
|
||||
Reference in New Issue
Block a user