mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-24 05:06:02 +08:00
38 lines
1019 B
TypeScript
38 lines
1019 B
TypeScript
// Type definitions for chai-jquery 1.1.1
|
|
// Project: https://github.com/chaijs/chai-jquery
|
|
// Definitions by: Kazi Manzur Rashid <https://github.com/kazimanzurrashid/>
|
|
// DefinitelyTyped: https://github.com/borisyankov/DefinitelyTyped
|
|
|
|
/// <reference path="../chai/chai.d.ts" />
|
|
|
|
declare module chai {
|
|
interface NameValueRegexMatcher {
|
|
match(value: RegExp): boolean;
|
|
}
|
|
|
|
interface NameValueMatcher {
|
|
(name: string, value?: string): boolean;
|
|
}
|
|
|
|
interface Have {
|
|
attr: NameValueMatcher;
|
|
css: NameValueMatcher;
|
|
data: NameValueMatcher;
|
|
class(className: string): boolean;
|
|
id(id: string): boolean;
|
|
html(html: string): boolean;
|
|
text(text: string): boolean;
|
|
value(text: string): boolean;
|
|
(selector: string): boolean;
|
|
}
|
|
|
|
interface Be {
|
|
visible: boolean;
|
|
hidden: boolean;
|
|
selected: boolean;
|
|
checked: boolean;
|
|
disabled: boolean;
|
|
(selector: string): boolean;
|
|
}
|
|
}
|