TS doesn't allow optional parameters with literals

This commit is contained in:
NN
2013-07-05 22:55:50 +03:00
parent 3b17700c1b
commit be4949c064
+3 -3
View File
@@ -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;
}
}