mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-21 21:31:12 +08:00
12 lines
216 B
TypeScript
12 lines
216 B
TypeScript
/// <reference path="./knockout.d.ts" />
|
||
|
||
import ko = require("knockout");
|
||
|
||
var myArray = ko.observableArray([1, 2, 3]);
|
||
|
||
class MyViewModel {
|
||
name = ko.observable("Jeff");
|
||
}
|
||
|
||
ko.applyBindings(new MyViewModel());
|