forked from ampproject/amphtml
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bento: expose Imperative API object (ampproject#31661)
* Implement whenUpgraded for Bento Imperative APIs * Need to wait for the impl, then the API * Expose API on AMP Elements Just links to the Impl * Resolve promise with the wrapped API, not the ref * Fix incorrect this, use ref holder directly * Tests and fixes * Fix type * Move getApi to BaseElement * Remove createRef use * Add private annotations * Throw err if API shape changes * Fix jsdoc * Remove .only test * Test throw when API surface changes * Use devAssert * Type updates * Add CustomElement.getApi()
- Loading branch information
1 parent
4209fe9
commit b52645f
Showing
6 changed files
with
297 additions
and
10 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
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
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
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
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
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