From 330d214c1424190cb2804099ab3be998033a3a6c Mon Sep 17 00:00:00 2001 From: Aaron Pham Date: Mon, 19 Aug 2024 06:15:17 -0400 Subject: [PATCH] docs: update wrong type order (#85) --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 0bfb669..ce351f3 100644 --- a/README.md +++ b/README.md @@ -287,7 +287,7 @@ A custom provider should following the following spec: --- This opts include: --- - on_chunk: (fun(chunk: string): any) this is invoked on parsing correct delta chunk --- - on_complete: (fun(err: string|nil): any) this is invoked on either complete call or error chunk - ---@type fun(data_stream: string, opts: ResponseParser, event_state: string): nil + ---@type fun(data_stream: string, event_state: string, opts: ResponseParser): nil parse_response_data = function(data_stream, event_state, opts) end } ```