docs: update wrong type order (#85)

This commit is contained in:
Aaron Pham 2024-08-19 06:15:17 -04:00 committed by GitHub
parent 2463c896f1
commit 330d214c14
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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
}
```