forked from DefinitelyTyped/DefinitelyTyped
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathknockout-secure-binding.d.ts
31 lines (25 loc) · 946 Bytes
/
knockout-secure-binding.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
// Type definitions for knockout-secure-binding
// Project: https://github.com/brianmhunt/knockout-secure-binding
// Definitions by: Pine Mizune <https://github.com/pine613>
// Definitions: https://github.com/borisyankov/DefinitelyTyped
/// <reference path="../knockout/knockout.d.ts" />
interface KnockoutSecureBindingOptions {
attribute?: string;
globals?: any;
bindings?: KnockoutBindingHandlers;
noVirtualElements?: boolean;
}
interface KnockoutSecureBindingProvider extends KnockoutBindingProvider {
new (options?: KnockoutSecureBindingOptions): KnockoutBindingProvider;
}
interface KnockoutStatic {
secureBindingsProvider: {
new (options?: KnockoutSecureBindingOptions): KnockoutBindingProvider;
};
}
declare module "knockout-secure-binding" {
var klass: {
new (options?: KnockoutSecureBindingOptions): KnockoutBindingProvider;
};
export = klass;
}