@rescript/webapi 0.1.0-experimental-beb6b0c → 0.1.0-experimental-b56f2cb

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": "@rescript/webapi",
3
- "version": "0.1.0-experimental-beb6b0c",
3
+ "version": "0.1.0-experimental-b56f2cb",
4
4
  "description": "Experimental successor to [rescript-webapi](https://github.com/TheSpyder/rescript-webapi)",
5
5
  "homepage": "https://rescript-lang.github.io/experimental-rescript-webapi/",
6
6
  "bugs": "https://github.com/rescript-lang/experimental-rescript-webapi/issues",
@@ -419,13 +419,13 @@ element->Element.scrollIntoView_alignToTop()
419
419
  Scrolls the element's ancestor containers such that the element on which scrollIntoView() is called is visible to the user.
420
420
 
421
421
  ```res
422
- element->Element.scrollIntoView_withOptions({ behavior: DOMAPI.Smooth })
422
+ element->Element.scrollIntoViewWithOptions({ behavior: DOMAPI.Smooth })
423
423
  ```
424
424
 
425
425
  [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/scrollIntoView)
426
426
  */
427
427
  @send
428
- external scrollIntoView_withOptions: (T.t, scrollIntoViewOptions) => unit = "scrollIntoView"
428
+ external scrollIntoViewWithOptions: (T.t, scrollIntoViewOptions) => unit = "scrollIntoView"
429
429
 
430
430
  /**
431
431
  [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/scrollTo)
@@ -303,7 +303,7 @@ let response = await window->Window.fetch("https://rescript-lang.org")
303
303
  external fetch: (window, string, ~init: requestInit=?) => promise<response> = "fetch"
304
304
 
305
305
  /**
306
- `fetch_withRequest(window, request, init)`
306
+ `fetchWithRequest(window, request, init)`
307
307
 
308
308
  Starts the process of fetching a resource from the network,
309
309
  returning a promise that is fulfilled once the response is available.
@@ -314,7 +314,7 @@ let response = await window->Window.fetch(myRequest)
314
314
  [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Window/fetch)
315
315
  */
316
316
  @send
317
- external fetch_withRequest: (window, request, ~init: requestInit=?) => promise<response> = "fetch"
317
+ external fetchWithRequest: (window, request, ~init: requestInit=?) => promise<response> = "fetch"
318
318
 
319
319
  /**
320
320
  [Read more on MDN](https://developer.mozilla.org/docs/Web/API/DedicatedWorkerGlobalScope/requestAnimationFrame)
package/src/Global.res CHANGED
@@ -493,7 +493,7 @@ let response = await fetch("https://rescript-lang.org")
493
493
  external fetch: (string, ~init: requestInit=?) => promise<response> = "fetch"
494
494
 
495
495
  /**
496
- `fetch_withRequest(request, init)`
496
+ `fetchWithRequest(request, init)`
497
497
 
498
498
  Starts the process of fetching a resource from the network,
499
499
  returning a promise that is fulfilled once the response is available.
@@ -504,7 +504,7 @@ let response = await fetch(myRequest)
504
504
 
505
505
  [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Window/fetch)
506
506
  */
507
- external fetch_withRequest: (request, ~init: requestInit=?) => promise<response> = "fetch"
507
+ external fetchWithRequest: (request, ~init: requestInit=?) => promise<response> = "fetch"
508
508
 
509
509
  /**
510
510
  [Read more on MDN](https://developer.mozilla.org/docs/Web/API/DedicatedWorkerGlobalScope/requestAnimationFrame)
@@ -24,7 +24,7 @@ let response = await self->WorkerGlobalScope.fetch("https://rescript-lang.org")
24
24
  external fetch: (T.t, string, ~init: requestInit=?) => promise<response> = "fetch"
25
25
 
26
26
  /**
27
- `fetch_withRequest(workerGlobalScope, request, init)`
27
+ `fetchWithRequest(workerGlobalScope, request, init)`
28
28
 
29
29
  The fetch() method of the WorkerGlobalScope interface starts the process of fetching a resource from the network,
30
30
  returning a promise that is fulfilled once the response is available.
@@ -35,7 +35,7 @@ let response = await self->WorkerGlobalScope.fetch(myRequest)
35
35
 
36
36
  [Read more on MDN](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/fetch)
37
37
  */
38
- external fetch_withRequest: (T.t, request, ~init: requestInit=?) => promise<response> = "fetch"
38
+ external fetchWithRequest: (T.t, request, ~init: requestInit=?) => promise<response> = "fetch"
39
39
  }
40
40
 
41
41
  include Impl({type t = workerGlobalScope})