Page MenuHomeSealhub

delegate-listener.ts
No OneTemporary

Authored By
Unknown
Size
377 B
Referenced Files
None
Subscribers
None

delegate-listener.ts

import type {
CollectionEvent,
CollectionCallback,
} from "../chip-types/collection";
import type { App } from "../main";
export class EventDescription {
constructor(
public collection_name: string,
public event_name: CollectionEvent
) {}
attachTo(app: App, callback: CollectionCallback) {
app.collections[this.collection_name].on(this.event_name, callback);
}
}

File Metadata

Mime Type
application/javascript
Expires
Sat, Nov 7, 15:44 (16 h, 40 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1181789
Default Alt Text
delegate-listener.ts (377 B)

Event Timeline