mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
* Update index.d.ts removed fromjs overload that no longer exists in latest knockout.mapping, and added much better type safety for "fromJS". * Update index.d.ts * Update index.d.ts * Update index.d.ts * Update index.d.ts * Update index.d.ts * Update index.d.ts * Update index.d.ts * Update index.d.ts * Update index.d.ts * Update index.d.ts * Update index.d.ts * Update index.d.ts * Update index.d.ts * Update index.d.ts * Update index.d.ts * Update index.d.ts * Update index.d.ts * Update index.d.ts * fix for typescript version. * more typescript versioning fixes. * fix for minor bug. * yet another test fix. * yet another test fix.
33 lines
932 B
TypeScript
33 lines
932 B
TypeScript
// 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/DefinitelyTyped/DefinitelyTyped
|
|
// TypeScript Version: 2.3
|
|
|
|
/// <reference types="knockout" />
|
|
|
|
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;
|
|
}
|