File tree Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -322,11 +322,13 @@ const pd_from_property_bag = Temporal.PlainDate.from({
322
322
});
323
323
```
324
324
325
- It turns out that the above operations is all that needs to be
326
- implemented by ` temporal_rs ` in order to support a Temporal
327
- implementation, we just need to implement ` From<PlainDateTime> ` ,
328
- ` From<ZonedDateTime> ` , ` FromStr ` , and ` From<JsObject> ` ... oh. Did I
329
- mention ` JsObject ` , like ` JsValue ` , is implementation defined as well?
325
+ If we look closely to the common usage of the method, it seems like
326
+ all that needs to be implemented by ` temporal_rs ` is:
327
+ - ` From<PlainDateTime> ` : Easy.
328
+ - ` From<ZonedDateTime> ` : Simple.
329
+ - ` FromStr ` : Tricky but can be done.
330
+ - ` From<JsObject> ` : ...
331
+ ... oh. Did I mention ` JsObject ` , like ` JsValue ` , is engine defined as well?
330
332
331
333
Fortunately, this is where ` temporal_rs ` 's Partial API comes in.
332
334
You can’t perform that action at this time.
0 commit comments