Skip to content

Commit 40c99ed

Browse files
authored
Update cypress.d.ts
1 parent a98cc07 commit 40c99ed

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cli/types/cypress.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
/// <reference path="./cypress-type-helpers.d.ts" />
55

66
type AllTasks = typeof import('../../../cypress.config')['CypressTasks']
7-
type TaskEventNames = keyof AllTasks
7+
type TaskEventNames = keyof AllTasks & string
88

99
type MyParameter<T extends TaskEventNames> = Parameters<AllTasks[T]>[0]
1010
type MyReturnType<T extends TaskEventNames> = Awaited<ReturnType<AllTasks[T]>>

0 commit comments

Comments
 (0)