Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
codeoverflow-org committed Jun 12, 2023
1 parent 408a1a1 commit e774827
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 2 deletions.
Binary file modified nodecg-io-streamelements-0.3.0.tgz
Binary file not shown.
13 changes: 13 additions & 0 deletions nodecg-io-streamelements/extension/StreamElements.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion nodecg-io-streamelements/extension/StreamElements.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 13 additions & 1 deletion nodecg-io-streamelements/extension/StreamElementsEvent.d.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { ObjectMap } from "nodecg-io-core";
interface StreamElementsBaseEvent<TType, TData> {
/**
* StreamElements hexadecimal Event ID
Expand Down Expand Up @@ -132,7 +133,7 @@ interface StreamElementsBaseTestEvent<TListener, TEvent> {
/**
* Event provider
*/
provider: "twitch" | "youtube" | "facebook";
provider?: "twitch" | "youtube" | "facebook";
listener: TListener;
event: TEvent & StreamElementsTestDataBase;
}
Expand Down Expand Up @@ -223,5 +224,16 @@ export type StreamElementsTestTipEvent = StreamElementsBaseTestEvent<"tip-latest
}>;
export type StreamElementsEvent = StreamElementsFollowEvent | StreamElementsCheerEvent | StreamElementsHostEvent | StreamElementsRaidEvent | StreamElementsSubscriberEvent | StreamElementsTipEvent;
export type StreamElementsTestEvent = StreamElementsTestFollowEvent | StreamElementsTestCheerEvent | StreamElementsTestHostEvent | StreamElementsTestRaidEvent | StreamElementsTestSubscriberEvent | StreamElementsTestTipEvent;
/**
* When replaying real events the structure is similar to the test events
* except for the keys in the root object.
* This is a replay event general for all types.
* The data structure and name follows the same schema as the test events.
*/
export interface StreamElementsReplayEvent {
provider?: "twitch" | "youtube" | "facebook";
name: string;
data: ObjectMap<string | number>;
}
export {};
//# sourceMappingURL=StreamElementsEvent.d.ts.map

0 comments on commit e774827

Please sign in to comment.