Skip to content

Commit 5d2f875

Browse files
committed
add spacing between method names
1 parent edb1798 commit 5d2f875

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

src/Core__Object.res

+6-4
Original file line numberDiff line numberDiff line change
@@ -57,9 +57,10 @@ y->Object.get("fruit") // Some("banana")
5757
@val
5858
external create: {..} => {..} = "Object.create"
5959

60-
@val
61-
external createWithProperties: ({..}, {..}) => {..} = "Object.create"
60+
@val external createWithProperties: ({..}, {..}) => {..} = "Object.create"
61+
6262
@val external createWithNull: (@as(json`null`) _, unit) => {..} = "Object.create"
63+
6364
@val external createWithNullAndProperties: (@as(json`null`) _, {..}) => {..} = "Object.create"
6465

6566
/**
@@ -80,15 +81,15 @@ Object.assign({"a": 1}, {"a": null}) // {"a": null}
8081
@val
8182
external assign: ({..}, {..}) => {..} = "Object.assign"
8283

83-
@variadic
84-
@val
8584
/**
8685
`assignMany(target, sources)` copies enumerable own properties from each source to the target, overwriting properties with the same name. Later sources' properties overwrite earlier ones. It returns the modified target object. A deep clone is not created; properties are copied by reference.
8786
8887
**Note:** ReScript provides [first-class support for immutable objects](https://rescript-lang.org/docs/manual/latest/object), including spreading one object into another. This is often more convenient than using `assign` or `assignMany`.
8988
9089
See [Object.assign on MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/assign) or [ECMAScript Language Specification](https://tc39.es/ecma262/multipage/fundamental-objects.html#sec-object.assign).
9190
*/
91+
@variadic
92+
@val
9293
external assignMany: ({..}, array<{..}>) => {..} = "Object.assign"
9394

9495
@val external copy: (@as(json`{}`) _, {..} as 'a) => 'a = "Object.assign"
@@ -123,6 +124,7 @@ x->Object.getSymbol(fruit) // Some("banana")
123124
*/
124125
@get_index
125126
external getSymbol: ({..}, Core__Symbol.t) => option<'a> = ""
127+
126128
@get_index external getSymbolUnsafe: ({..}, Core__Symbol.t) => 'a = ""
127129

128130
/**

0 commit comments

Comments
 (0)