Skip to content

Commit 193e3a6

Browse files
Merge pull request #19 from stripe/jdivock/outputloglevel
Adding output log level to type list
2 parents 7ee6ba1 + e6d4827 commit 193e3a6

File tree

3 files changed

+9
-4
lines changed

3 files changed

+9
-4
lines changed

pure.d.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import {
44
Terminal,
55
PaymentStatus,
66
ConnectionStatus,
7+
OutputLogLevel,
78
} from './types/terminal-js/index';
89

910
export * from './types/terminal-js/index';
@@ -12,6 +13,7 @@ export interface StripeTerminal {
1213
create(props: TerminalProps): Terminal;
1314
PaymentStatus: PaymentStatus;
1415
ConnectionStatus: ConnectionStatus;
16+
OutputLogLevel: OutputLogLevel;
1517
}
1618

1719
export const loadStripeTerminal: typeof IloadStripeTerminal;

types/index.d.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import {
33
TerminalProps,
44
PaymentStatus,
55
ConnectionStatus,
6+
OutputLogLevel,
67
} from './terminal';
78

89
export * from './terminal';
@@ -11,6 +12,7 @@ export interface StripeTerminal {
1112
create(props: TerminalProps): Terminal;
1213
PaymentStatus: PaymentStatus;
1314
ConnectionStatus: ConnectionStatus;
15+
OutputLogLevel: OutputLogLevel;
1416
}
1517

1618
export const loadStripeTerminal: () => Promise<StripeTerminal | null>;

types/terminal.d.ts

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,13 +35,14 @@ export enum ConnectionStatus {
3535
NOT_CONNECTED = 'not_connected',
3636
}
3737

38-
export declare type ConnectionToken = string;
39-
export declare type FetchConnectionTokenFn = () => Promise<ConnectionToken>;
40-
41-
export declare enum OutputLogLevel {
38+
export enum OutputLogLevel {
4239
NONE = 'none',
4340
VERBOSE = 'verbose',
4441
}
42+
43+
export declare type ConnectionToken = string;
44+
export declare type FetchConnectionTokenFn = () => Promise<ConnectionToken>;
45+
4546
export interface StatusEvent<T extends string> {
4647
status: T;
4748
}

0 commit comments

Comments
 (0)