mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-09-09 11:13:57 +08:00
ko.unwrap uses union types
This commit is contained in:
@@ -648,4 +648,11 @@ function test_Components() {
|
||||
// Empty config for registering custom elements that are handled by name convention
|
||||
ko.components.register('name', { /* No config needed */ });
|
||||
}
|
||||
}
|
||||
|
||||
function testUnwrapUnion() {
|
||||
|
||||
var possibleObs: KnockoutObservable<number> | number;
|
||||
var num = ko.unwrap(possibleObs);
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user