@@ -21,7 +21,7 @@ let shared: sharedWorker = SharedWorker.make("sharedworker.js")
21
21
external make : string => sharedWorker = "SharedWorker"
22
22
23
23
/**
24
- `make_withName (string, string)`
24
+ `makeWithName (string, string)`
25
25
26
26
The SharedWorker() constructor creates a SharedWorker object that executes the
27
27
script at the specified URL. This script must obey the same-origin policy.
@@ -33,16 +33,16 @@ let shared: sharedWorker = SharedWorker.make("sharedworker.js", "name")
33
33
[Read more on MDN](https://developer.mozilla.org/en-US/docs/Web/API/SharedWorker/)
34
34
*/
35
35
@new
36
- external make_withName : (string , string ) => sharedWorker = "SharedWorker"
36
+ external makeWithName : (string , string ) => sharedWorker = "SharedWorker"
37
37
38
38
/**
39
- `make_withOptions (string, workerOptions)`
39
+ `makeWithOptions (string, workerOptions)`
40
40
41
41
The SharedWorker() constructor creates a SharedWorker object that executes the
42
42
script at the specified URL. This script must obey the same-origin policy.
43
43
44
44
```res
45
- let shared3 : sharedWorker = SharedWorker.make_withOptions ("sharedworker.js", {
45
+ let shared : sharedWorker = SharedWorker.makeWithOptions ("sharedworker.js", {
46
46
name: "workerName",
47
47
type_: Module
48
48
})
@@ -51,7 +51,7 @@ let shared3: sharedWorker = SharedWorker.make_withOptions("sharedworker.js", {
51
51
[Read more on MDN](https://developer.mozilla.org/en-US/docs/Web/API/SharedWorker/)
52
52
*/
53
53
@new
54
- external make_withOptions : (string , workerOptions ) => sharedWorker = "SharedWorker"
54
+ external makeWithOptions : (string , workerOptions ) => sharedWorker = "SharedWorker"
55
55
56
56
/**
57
57
`port(sharedWorker)`
0 commit comments