Skip to content

Commit ea07e82

Browse files
committed
replace relative imports
1 parent 1711f0e commit ea07e82

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

examples/complexity.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
import * as instamancer from "instamancer";
2-
import {TPost} from "instamancer";
32
import {Response} from "puppeteer";
4-
import {IPluginContext} from "../plugins/plugin";
53

64
class Complexity<PostType> implements instamancer.IPlugin<PostType> {
75
private query: string;
@@ -11,7 +9,7 @@ class Complexity<PostType> implements instamancer.IPlugin<PostType> {
119
}
1210

1311
public responseEvent(
14-
this: IPluginContext<Complexity<PostType>, PostType>,
12+
this: instamancer.IPluginContext<Complexity<PostType>, PostType>,
1513
res: Response,
1614
data: {[key: string]: any},
1715
): void {
@@ -39,7 +37,7 @@ const user = instamancer.createApi("user", "therock", {
3937
});
4038

4139
(async () => {
42-
const posts: TPost[] = [];
40+
const posts: instamancer.TPost[] = [];
4341
for await (const post of user.generator()) {
4442
posts.push(post);
4543
}

0 commit comments

Comments
 (0)