/
githubmirror
/
amphtml
Обзор
Документация
Войти
/
githubmirror
/
amphtml
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
src/core/constants/async-input.d.ts
19 строк
659 B
Ryan Cebulko
♻️ Reorg type defs and remove compiler type stubs (#37240)
18 дек 2021, 00:46
Не верифицирован
18 дек 2021, 00:46
38e5023
Код
Авторство
О чём код?
/** * Interface for all AMP Async Input Elements. * enforces the overridable function, getValue(). * Async Input should be implemented * by components like AMP form, to async request * a value from a component, and then be used for * some other action. For examples, this can be used * by reCAPTCHA to request tokens for the form. * * NOTE: Elements that implemented AsyncInput must * Also add and follow the other exported constants. * See amp-recaptcha-input as an example. */ export interface AsyncInput { // Called to get the asynchronous value of an AsyncInput field. getValue: () => Promise<string>; } export * from './async-input.js';