forked from Txio-labs/txio
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtypes.ts
More file actions
25 lines (22 loc) · 738 Bytes
/
Copy pathtypes.ts
File metadata and controls
25 lines (22 loc) · 738 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
import { RequestItem, RequestType, Network, RPCHealthMetric, EnvironmentVariable, AssertionResult } from '../../types';
export interface RequestPanelProps {
request: RequestItem;
network: Network;
isLoading: boolean;
onChange: (updatedReq: RequestItem) => void;
onSend: () => void;
onExecute?: () => void;
activeAddress: string | null;
envVars: EnvironmentVariable[];
isReadOnly?: boolean;
testResults?: AssertionResult[];
}
export interface BuilderTabProps {
request: RequestItem;
network: Network;
activeAddress: string | null;
envVars: EnvironmentVariable[];
isReadOnly?: boolean;
onChange: (updatedReq: RequestItem) => void;
}
export type ActiveTab = 'builder' | 'raw' | 'tests' | 'hooks' | 'code';