mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-09-11 11:50:54 +08:00
Fixed bug - makeEditable now on .editable
Also refactored how editable types inherit - now simpler
This commit is contained in:
@@ -9,6 +9,8 @@
|
||||
/*
|
||||
Version 1.0 - initial commit
|
||||
|
||||
Version 1.1 - added test for makeEditable
|
||||
|
||||
Note: Typescript version 1.4 or higher is required for union types
|
||||
and type declarations
|
||||
*/
|
||||
@@ -65,6 +67,8 @@ function EditableTests() {
|
||||
var edit4 = ko.editable<string|number>(1); // with union types
|
||||
var edit5 = ko.editable<string|number>("test");
|
||||
|
||||
ko.editable.makeEditable(this);
|
||||
|
||||
// test getting the value
|
||||
var value = edit1();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user