-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
bd1aa2e
commit ea99eb2
Showing
82 changed files
with
7,376 additions
and
6,217 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
ea99eb2
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@kerrishotts Oh man. This commit removed the return type annotations which are super important.
Previous:
#### entry.getMetadata() ⇒ `Promise.<EntryMetadata>`
Current:
#### entry.getMetadata()
Without this information, users may expect that an
EntryMetadata
instance is directly returned, rather than a Promise instance that will eventually evaluate to one!It does appear that type information is maintained in the Returns: sections of each API. However, some of those sections do not currently exist in the documentation making it appear that they will return
void
orundefined
.HOWEVER, with respect to the
entry.getMetadata()
method mentioned in the example above, the JS example was further updated from:to:
The removal of the
await
indicates that a value (presumably anEntryMetadata
instance...) is returned directly. Testing with XD 20.0.12.10 shows that a call toEntry.getMetadata()
still returns aPromise
instance! So unless something changes about this API in the next version then a bug was just introduced here and the documentation actually got less specific with this commit!