Martin Skogevall
Martin Skogevall
I added an answer in the stackoverflow question. We need to make sure that these two lines remain valid after any fix. ```typescript const x = observable(false); const y =...
Also, typescript is transpiling to standard JS. The result usually looks good with no strange additions in the generated js code.
There is similar functionality in Durandal called [Widgets](http://durandaljs.com/documentation/Creating-A-Widget.html) if you want to review more variations of the same theme. Please, keep this functionality optional, so that it is possible to...
Move the `new` to the viewmodel. Currently you create part of the viewmodel in the view.
There is an [abandoned PR](https://github.com/DefinitelyTyped/DefinitelyTyped/pull/32210) that improves the typing of `fromJS`. A somewhat refined version of that is: ```typescript type KnockoutObservableType = { [P in keyof T]: T[P] extends KnockoutObservable...
You're correct, the MappingOptions throws a wrench in the machinery. However, I would like to be able to call `fromJS` like this ```typescript const autoMappedType = ko.mapping.fromJS({ a: 10, b:...