Skip to content

Commit 07aaf50

Browse files
committed
Merge branch 'main' of github.com:rescript-lang/experimental-rescript-webapi into codex/issue-236-constructor-from-names-carryover
2 parents 6cb796d + 71e7a6a commit 07aaf50

157 files changed

Lines changed: 1597 additions & 1427 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

docs/content/docs/contributing/api-modelling.mdx

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -128,9 +128,8 @@ mutable fillStyle: fillStyle
128128
When we wish to read and write the `fillStyle` property, we can use a helper module to lift the type to an actual ReScript variant:
129129

130130
export const fillStyleModule = `
131-
open Prelude
132-
open CanvasAPI
133-
open DOMAPI
131+
open WebApiCanvas
132+
open WebApiDOM
134133
135134
external fromString: string => fillStyle = "%identity"
136135
external fromCanvasGradient: canvasGradient => fillStyle = "%identity"

docs/content/docs/philosophy.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,12 +50,12 @@ let element: element = document->Document.createElement( ~localName = "div")
5050
let node: node = element->Element.asNode
5151
```
5252

53-
Any other conversions can be performed using the `Prelude.unsafeConversation` helper. This should be done with caution, as it can lead to runtime errors.
53+
Any other conversions can be performed using the `Base.unsafeConversation` helper. This should be done with caution, as it can lead to runtime errors.
5454

5555
```ReScript
5656
open WebAPI
5757
5858
let element: element = document->Document.createElement( ~localName = "div")
5959
// This is potentially unsafe, as the type system cannot guarantee the conversion
60-
let divElement: htmlDivElement = element->Prelude.unsafeConversation
60+
let divElement: htmlDivElement = element->Base.unsafeConversation
6161
```

0 commit comments

Comments
 (0)