Get rid of domain module, allow app to override default event type

This commit is contained in:
Jon Staab
2024-08-13 15:45:20 -07:00
parent 5a63273b9d
commit 149c29472c
33 changed files with 201 additions and 285 deletions
+3 -3
View File
@@ -1,4 +1,4 @@
import type {ExtensibleTrustedEvent, Filter} from '@welshman/util'
import type {CustomEvent, Filter} from '@welshman/util'
export enum FeedType {
Address = "address",
@@ -110,7 +110,7 @@ export type RequestItem = {
}
export type RequestOpts = RequestItem & {
onEvent: (event: ExtensibleTrustedEvent) => void
onEvent: (event: CustomEvent) => void
}
export type DVMRequest = {
@@ -120,7 +120,7 @@ export type DVMRequest = {
}
export type DVMOpts = DVMRequest & {
onEvent: (event: ExtensibleTrustedEvent) => void
onEvent: (event: CustomEvent) => void
}
export type FeedOptions = {