mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-05-18 20:37:14 +08:00
add tests
This commit is contained in:
@@ -1,2 +1,27 @@
|
||||
/// <reference path="jsf.d.ts" />
|
||||
|
||||
function callbackWithoutData() {
|
||||
|
||||
}
|
||||
|
||||
function callback(data: jsf.ajax.RequestData) {
|
||||
|
||||
}
|
||||
|
||||
class RequestOptionsImpl implements jsf.ajax.RequestOptions {
|
||||
execute = "@all";
|
||||
render = "@none";
|
||||
}
|
||||
|
||||
|
||||
jsf.ajax.addOnEvent(callbackWithoutData);
|
||||
jsf.ajax.addOnEvent(callback);
|
||||
|
||||
jsf.ajax.addOnError(callbackWithoutData);
|
||||
jsf.ajax.addOnError(callback);
|
||||
|
||||
jsf.ajax.request("someSource");
|
||||
jsf.ajax.request("someSource", "change");
|
||||
jsf.ajax.request("someSource", "change", new RequestOptionsImpl());
|
||||
|
||||
jsf.ajax.response("someRequestObject", "someContextObject");
|
||||
|
||||
2
jsf/jsf.d.ts
vendored
2
jsf/jsf.d.ts
vendored
@@ -3,7 +3,7 @@
|
||||
// Definitions by: Lars Michaelis and Stephan Zerhusen <https://github.com/ButterFaces/ButterFaces>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
|
||||
declare module "jsf" {
|
||||
declare module jsf {
|
||||
module ajax {
|
||||
|
||||
interface RequestData {
|
||||
|
||||
Reference in New Issue
Block a user