Skip to content

Commit 7eba915

Browse files
committed
add webhook typings
Signed-off-by: shmck <[email protected]>
1 parent 93d6938 commit 7eba915

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

typings/tutorial.d.ts

+13
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ export type TutorialConfig = {
1111
dependencies?: TutorialDependency[]
1212
reset?: ConfigReset
1313
setup?: StepActions
14+
webhook?: WebhookConfig
1415
}
1516

1617
/** Logical groupings of tasks */
@@ -91,3 +92,15 @@ export interface TutorialSkeleton {
9192
config: TutorialConfig
9293
levels: Level[]
9394
}
95+
96+
export interface WebhookConfigEvents {
97+
init?: boolean
98+
reset?: boolean
99+
step_complete?: boolean
100+
level_complete?: boolean
101+
tutorial_complete?: boolean
102+
}
103+
export interface WebhookConfig {
104+
url: string
105+
events?: WebhookConfigEvents
106+
}

0 commit comments

Comments
 (0)