@colisweb/rescript-toolkit 2.30.0 → 2.31.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@colisweb/rescript-toolkit",
3
- "version": "2.30.0",
3
+ "version": "2.31.0",
4
4
  "scripts": {
5
5
  "clean": "rescript clean",
6
6
  "build": "rescript build",
@@ -98,12 +98,14 @@ external options: (string, ~config: config=?, unit) => Promise.Js.t<response<'da
98
98
  "options"
99
99
 
100
100
  module Interceptors = {
101
- @module("axios") @scope(("default", "interceptors", "request"))
102
- external requestInterceptor: ('config => Promise.Js.t<'updatedConfig, 'error>) => unit = "use"
101
+ type t
102
+ module Request = {
103
+ @module("axios") @scope(("default", "interceptors", "request"))
104
+ external use: ('config => Promise.Js.t<'updatedConfig, 'error>) => t = "use"
103
105
 
104
- @module("axios") @scope(("default", "interceptors", "response"))
105
- external responseInterceptor: ('response => Promise.Js.t<'updatedResponse, 'error>) => unit =
106
- "use"
106
+ @module("axios") @scope(("default", "interceptors", "request"))
107
+ external eject: t => unit = "eject"
108
+ }
107
109
  }
108
110
 
109
111
  module WithResult = {