Skip to content

Commit 023228c

Browse files
committed
Further dedupe typedefs
1 parent c6cfc02 commit 023228c

40 files changed

+2292
-48
lines changed

src/CSSFontLoadingAPI/FontFace.res

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
open CSSFontLoadingAPI
2-
open Prelude
32

43
/**
54
[Read more on MDN](https://developer.mozilla.org/docs/Web/API/FontFace)
@@ -14,7 +13,17 @@ external make: (~family: string, ~source: string, ~descriptors: fontFaceDescript
1413
@new
1514
external make2: (
1615
~family: string,
17-
~source: bufferSource,
16+
~source: DataView.t,
17+
~descriptors: fontFaceDescriptors=?,
18+
) => fontFace = "FontFace"
19+
20+
/**
21+
[Read more on MDN](https://developer.mozilla.org/docs/Web/API/FontFace)
22+
*/
23+
@new
24+
external make3: (
25+
~family: string,
26+
~source: ArrayBuffer.t,
1827
~descriptors: fontFaceDescriptors=?,
1928
) => fontFace = "FontFace"
2029

0 commit comments

Comments
 (0)