Add jQuery reference and update tests

This commit is contained in:
Tsvetomir Tsonev
2015-11-11 15:55:08 +02:00
parent 3140250f5d
commit c2756b589d
2 changed files with 26 additions and 0 deletions

View File

@@ -1,2 +1,26 @@
/// <reference path="../jquery/jquery.d.ts" />
/// <reference path="kendo-ui.d.ts" />
var is = {
string: (msg: string) => {
return true;
}
}
// TreeView
$(() => {
var treeview = <kendo.ui.TreeView>$("#treeview").data("kendoTreeView");
is.string(treeview.text("#foo"));
treeview.text("#foo", "bar");
});
// Window
$(() => {
var window = <kendo.ui.Window>$("#window").data("kendoWindow");
var dom = $("<em>Foo</em>");
window.content(dom);
});

View File

@@ -3,6 +3,8 @@
// Definitions by: Telerik <https://github.com/telerik/>
// Definitions: https://github.com/borisyankov/DefinitelyTyped
/// <reference path="../jquery/jquery.d.ts" />
declare module kendo {
function culture(): {
name: string;