mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-09-09 11:13:57 +08:00
Merge pull request #754 from NN---/patch-5
TS doesn't allow optional parameters with literals
This commit is contained in:
+3
-3
@@ -251,7 +251,7 @@ interface DatePickerObject extends PickerObject {
|
||||
get(thing: string): any;
|
||||
|
||||
/** Returns the string value of the picker's input element. */
|
||||
get(thing?: 'value'): string;
|
||||
get(thing: 'value'): string;
|
||||
|
||||
/** Returns the item object that is visually selected. */
|
||||
get(thing: 'select'): DatePickerItemObject;
|
||||
@@ -317,7 +317,7 @@ interface TimePickerObject extends PickerObject {
|
||||
get(thing: string): any;
|
||||
|
||||
/** Returns the string value of the picker's input element. */
|
||||
get(thing?: 'value'): string;
|
||||
get(thing: 'value'): string;
|
||||
|
||||
/** Returns the item object that is visually selected. */
|
||||
get(thing: 'select'): TimePickerItemObject;
|
||||
@@ -372,4 +372,4 @@ interface HTMLInputElement {
|
||||
pickadate(picker: string): DatePickerObject;
|
||||
pickatime(picker: string): TimePickerObject;
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user