-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: extract event emitter types into separate file; fix export err…
…or for utils-ts-debug (#325) * chore: adding missing export * refactor: move out generic event interfaces into separate type file
- Loading branch information
1 parent
510899b
commit 155a2cd
Showing
13 changed files
with
115 additions
and
90 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
[@algorandfoundation/algokit-utils](../README.md) / [types/lifecycle-events](../modules/types_lifecycle_events.md) / EventType | ||
|
||
# Enumeration: EventType | ||
|
||
[types/lifecycle-events](../modules/types_lifecycle_events.md).EventType | ||
|
||
## Table of contents | ||
|
||
### Enumeration Members | ||
|
||
- [AppCompiled](types_lifecycle_events.EventType.md#appcompiled) | ||
- [TxnGroupSimulated](types_lifecycle_events.EventType.md#txngroupsimulated) | ||
|
||
## Enumeration Members | ||
|
||
### AppCompiled | ||
|
||
• **AppCompiled** = ``"AppCompiled"`` | ||
|
||
#### Defined in | ||
|
||
[src/types/lifecycle-events.ts:5](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/lifecycle-events.ts#L5) | ||
|
||
___ | ||
|
||
### TxnGroupSimulated | ||
|
||
• **TxnGroupSimulated** = ``"TxnGroupSimulated"`` | ||
|
||
#### Defined in | ||
|
||
[src/types/lifecycle-events.ts:4](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/lifecycle-events.ts#L4) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
[@algorandfoundation/algokit-utils](../README.md) / types/lifecycle-events | ||
|
||
# Module: types/lifecycle-events | ||
|
||
## Table of contents | ||
|
||
### Enumerations | ||
|
||
- [EventType](../enums/types_lifecycle_events.EventType.md) | ||
|
||
### Type Aliases | ||
|
||
- [EventDataMap](types_lifecycle_events.md#eventdatamap) | ||
|
||
## Type Aliases | ||
|
||
### EventDataMap | ||
|
||
Ƭ **EventDataMap**: `Object` | ||
|
||
#### Index signature | ||
|
||
▪ [key: `string`]: `unknown` | ||
|
||
#### Type declaration | ||
|
||
| Name | Type | | ||
| :------ | :------ | | ||
| `AppCompiled` | [`TealSourcesDebugEventData`](../interfaces/types_debugging.TealSourcesDebugEventData.md) | | ||
| `TxnGroupSimulated` | [`AVMTracesEventData`](../interfaces/types_debugging.AVMTracesEventData.md) | | ||
|
||
#### Defined in | ||
|
||
[src/types/lifecycle-events.ts:8](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/lifecycle-events.ts#L8) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
import { AVMTracesEventData, TealSourcesDebugEventData } from './debugging' | ||
|
||
export enum EventType { | ||
TxnGroupSimulated = 'TxnGroupSimulated', | ||
AppCompiled = 'AppCompiled', | ||
} | ||
|
||
export type EventDataMap = { | ||
[EventType.TxnGroupSimulated]: AVMTracesEventData | ||
[EventType.AppCompiled]: TealSourcesDebugEventData | ||
[key: string]: unknown | ||
} |