mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-05 15:27:05 +00:00
Split up TwimlMethod signature
By splitting up the union into an overload, we get much more useful typing than just (any, any)
This commit is contained in:
Vendored
+4
-1
@@ -379,7 +379,10 @@ declare namespace twilio {
|
||||
legalNodes: Array<string>;
|
||||
}
|
||||
|
||||
export interface TwimlMethod { (arg1: any | string | TwimlCallback, arg2?: any | string | TwimlCallback): Node }
|
||||
export interface TwimlMethod {
|
||||
(arg1: TwimlCallback | string, arg2?: any): Node
|
||||
(arg1: any, arg2?: TwimlCallback | string): Node
|
||||
}
|
||||
|
||||
export interface TwimlCallback { (node: Node): void; }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user