mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-06 07:47:04 +00:00
aurelia-knockout: Provides its own types (#22318)
This commit is contained in:
@@ -60,6 +60,12 @@
|
||||
"sourceRepoURL": "https://github.com/AlexTeixeira/Askmethat-Rating",
|
||||
"asOfVersion": "0.4.0"
|
||||
},
|
||||
{
|
||||
"libraryName": "aurelia-knockout",
|
||||
"typingsPackageName": "aurelia-knockout",
|
||||
"sourceRepoURL": "https://github.com/code-chris/aurelia-knockout",
|
||||
"asOfVersion": "2.1.0"
|
||||
},
|
||||
{
|
||||
"libraryName": "autobind-decorator",
|
||||
"typingsPackageName": "autobind-decorator",
|
||||
|
||||
@@ -1,9 +0,0 @@
|
||||
export class ViewModel {
|
||||
constructor(private knockoutBindable: KnockoutBindable) {
|
||||
}
|
||||
|
||||
activate(settings: any): void {
|
||||
this.knockoutBindable.applyBindableValues(settings, this);
|
||||
this.knockoutBindable.applyBindableValues(settings, this, true);
|
||||
}
|
||||
}
|
||||
Vendored
-18
@@ -1,18 +0,0 @@
|
||||
// Type definitions for aurelia-knockout 2.0
|
||||
// Project: https://github.com/code-chris/aurelia-knockout
|
||||
// Definitions by: Christian Kotzbauer <https://github.com/code-chris>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
|
||||
interface KnockoutBindable {
|
||||
/**
|
||||
* Applys all values from a data object (usually the activation data) to the corresponding instance fields
|
||||
* in the current view model if they are marked as @bindable. By default all matching values from the data object
|
||||
* are applied. To only apply observable values set the last parameter to `true`. Subscriptions are created
|
||||
* for all Knockout observables in the data object to update the view-model values respectively.
|
||||
*
|
||||
* @param data - the data object
|
||||
* @param target - the target view model
|
||||
* @param applyOnlyObservables - `true` if only observable values should be applied, false by default.
|
||||
*/
|
||||
applyBindableValues(data: any, target: any, applyOnlyObservables?: boolean): void;
|
||||
}
|
||||
@@ -1,24 +0,0 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"module": "commonjs",
|
||||
"lib": [
|
||||
"es6",
|
||||
"dom"
|
||||
],
|
||||
"noImplicitAny": true,
|
||||
"noImplicitThis": true,
|
||||
"strictNullChecks": false,
|
||||
"strictFunctionTypes": true,
|
||||
"baseUrl": "../",
|
||||
"typeRoots": [
|
||||
"../"
|
||||
],
|
||||
"types": [],
|
||||
"noEmit": true,
|
||||
"forceConsistentCasingInFileNames": true
|
||||
},
|
||||
"files": [
|
||||
"index.d.ts",
|
||||
"aurelia-knockout-tests.ts"
|
||||
]
|
||||
}
|
||||
@@ -1 +0,0 @@
|
||||
{ "extends": "dtslint/dt.json" }
|
||||
Reference in New Issue
Block a user