Skip to content

Commit 33de607

Browse files
authored
Export Action type (#454)
* Export `Action` type for downstream use. * Add fields in use in downstream implementation of the `Action` type. * Export `Signal`.
1 parent 3cf1dca commit 33de607

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

src/formatter/javascript.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ export type ActionInContext = {
3939
title?: string;
4040
};
4141

42-
type Action = {
42+
export type Action = {
4343
name: string;
4444
selector?: string;
4545
url?: string;
@@ -52,9 +52,11 @@ type Action = {
5252
value?: string;
5353
isAssert?: boolean;
5454
command?: string;
55+
files?: string[];
56+
options?: string[];
5557
};
5658

57-
type Signal = {
59+
export type Signal = {
5860
name: string;
5961
url?: string;
6062
isAsync?: boolean;

src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,4 +66,4 @@ export type { default as Runner } from './core/runner';
6666
export type { Reporter, ReporterOptions } from './reporters';
6767

6868
export type { SyntheticsConfig } from './common_types';
69-
export type { ActionInContext } from './formatter/javascript';
69+
export type { ActionInContext, Action, Signal } from './formatter/javascript';

0 commit comments

Comments
 (0)