docs: update wrong type order (#85)
This commit is contained in:
parent
2463c896f1
commit
330d214c14
@ -287,7 +287,7 @@ A custom provider should following the following spec:
|
|||||||
--- This opts include:
|
--- This opts include:
|
||||||
--- - on_chunk: (fun(chunk: string): any) this is invoked on parsing correct delta chunk
|
--- - 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
|
--- - 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
|
parse_response_data = function(data_stream, event_state, opts) end
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
Loading…
x
Reference in New Issue
Block a user