Skip to content

Commit 6093476

Browse files
committed
feat: har-format types added
1 parent 90ff2b5 commit 6093476

File tree

4 files changed

+411
-65
lines changed

4 files changed

+411
-65
lines changed

packages/firecamp-har/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,8 @@
2424
"version": "standard-version"
2525
},
2626
"dependencies": {
27-
"@firecamp/types": "^0.2.2"
27+
"@firecamp/types": "^0.2.2",
28+
"@types/har-format": "^1.2.8"
2829
},
2930
"devDependencies": {
3031
"@types/chrome": "^0.0.204",

packages/firecamp-har/src/index.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
1+
import { Har } from 'har-format';
12
import { Collection } from '@firecamp/types';
23

34
const firecampToHar = (collection: Partial<Collection>): any => {
45
return {};
56
};
67

7-
const harToFirecamp = (): Partial<Collection> => {
8+
const harToFirecamp = (har: Har): Partial<Collection> => {
89
return { requests: [] };
910
};
1011

packages/firecamp-har/src/types.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+

0 commit comments

Comments
 (0)