MCPcopy
hub / github.com/ampproject/amphtml / getApi

Method getApi

src/custom-element.js:1595–1597  ·  view source on GitHub ↗

* Returns the object which holds the API surface (the thing we add the * custom methods/properties onto). In Bento, this is the imperative API * object. In AMP, this is the BaseElement instance. * * @return {!Promise<!Object>}

()

Source from the content-addressed store, hash-verified

1593 * @return {!Promise<!Object>}
1594 */
1595 getApi() {
1596 return this.getImpl().then((impl) => impl.getApi());
1597 }
1598
1599 /**
1600 * Returns the layout of the element.

Callers

nothing calls this directly

Calls 2

getImplMethod · 0.95
thenMethod · 0.45

Tested by

no test coverage detected