v 1.2.1
This commit is contained in:
+3
-2
@@ -116,9 +116,10 @@ const extractArgs = (f:Function):string[] => {
|
||||
* Simple utility function to create basic {@link SubscriptionResponse}
|
||||
* @param uuid optional uuid to use, otherwise defaults to uuid/v4
|
||||
*/
|
||||
export function makeSubResponse(uuid?:string):SubscriptionResponse{
|
||||
export function makeSubResponse<T extends {} = {}>(extension:T):SubscriptionResponse & T{
|
||||
return {
|
||||
result: "Success",
|
||||
uuid: uuid?uuid:uuidv4(),
|
||||
uuid: uuidv4(),
|
||||
...extension
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user