/
kopython
/
_hyperscript
Обзор
Документация
Войти
/
kopython
/
_hyperscript
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
www/test/0.9.4/src/lib/plugin/eventsource.d.ts
23 строки
693 B
carson
update dist
10 янв 2022, 21:00
10 янв 2022, 21:00
a35ee59
Код
Авторство
О чём код?
// QUESTION: Is it OK to pack additional data into the "Feature" struct that's returned? // TODO: Add methods for EventSourceFeature.connect() and EventSourceFeature.close() interface EventSourceFeature { name: string object: EventSourceStub install: () => void } interface EventSourceStub { eventSource: EventSource listeners: EventListenerEntry[] retryCount: number open: (url?:string) => void close: () => void addEventListener: (type: keyof HTMLElementEventMap, listener:(event: Event) => any, options?: boolean | AddEventListenerOptions) => void } interface EventListenerEntry { type: string handler: EventHandlerNonNull options?: any }