mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-09-09 11:13:57 +08:00
Merge pull request #688 from nwolverson/optionalvalue
Simplify optional overloads
This commit is contained in:
Vendored
+1
-3
@@ -79,8 +79,7 @@ interface KnockoutObservableArrayStatic {
|
||||
|
||||
fn: KnockoutObservableArrayFunctions<any>;
|
||||
|
||||
<T>(): KnockoutObservableArray<T>;
|
||||
<T>(value: T[]): KnockoutObservableArray<T>;
|
||||
<T>(value?: T[]): KnockoutObservableArray<T>;
|
||||
}
|
||||
|
||||
interface KnockoutObservableArray<T> extends KnockoutObservableArrayFunctions<T> {
|
||||
@@ -95,7 +94,6 @@ interface KnockoutObservableStatic {
|
||||
fn: KnockoutObservableFunctions;
|
||||
|
||||
<T>(value?: T): KnockoutObservable<T>;
|
||||
<T>(): KnockoutObservable<T>;
|
||||
}
|
||||
|
||||
/** use as method to get/set the value */
|
||||
|
||||
Reference in New Issue
Block a user