We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 6f143a1 + 5e3f657 commit c72fc3bCopy full SHA for c72fc3b
1 file changed
index.d.ts
@@ -1,8 +1,16 @@
1
+interface WorkflowMatchId {
2
+ handler?: 'log' | 'silence' | 'throw';
3
+ matchId: string | RegExp;
4
+}
5
+
6
+interface WorkflowMatchMessage {
7
8
+ matchMessage: string | RegExp;
9
10
11
+type Workflow = WorkflowMatchId | WorkflowMatchMessage;
12
13
export default function setupDeprecationWorkflow(config?: {
14
throwOnUnhandled?: boolean;
- workflow?: {
- handler: 'log' | 'silence' | 'throw';
- matchId: string;
- matchMessage: string;
- }[];
15
+ workflow?: Workflow[];
16
}): void;
0 commit comments