Skip to content

Commit e725e95

Browse files
committed
fix: Use export type statement for mastodon namespace to reduce bundle size
1 parent b6ae4c0 commit e725e95

File tree

11 files changed

+116
-116
lines changed

11 files changed

+116
-116
lines changed

src/mastodon/entities/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
export * as v1 from "./v1";
2-
export * as v2 from "./v2";
1+
export type * as v1 from "./v1";
2+
export type * as v2 from "./v2";
Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
export * from "./account";
2-
export * from "./canonical-email-block";
3-
export * from "./cohort";
4-
export * from "./dimension";
5-
export * from "./domain-allow";
6-
export * from "./domain-block";
7-
export * from "./email-domain-block";
8-
export * from "./ip-block";
9-
export * from "./ip";
10-
export * from "./measure";
11-
export * from "./report";
12-
export * from "./tag";
1+
export type * from "./account";
2+
export type * from "./canonical-email-block";
3+
export type * from "./cohort";
4+
export type * from "./dimension";
5+
export type * from "./domain-allow";
6+
export type * from "./domain-block";
7+
export type * from "./email-domain-block";
8+
export type * from "./ip-block";
9+
export type * from "./ip";
10+
export type * from "./measure";
11+
export type * from "./report";
12+
export type * from "./tag";

src/mastodon/entities/v1/index.ts

Lines changed: 43 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -1,43 +1,43 @@
1-
export * from "./account";
2-
export * as Admin from "./admin";
3-
export * from "./activity";
4-
export * from "./announcement";
5-
export * from "./application";
6-
export * from "./context";
7-
export * from "./conversation";
8-
export * from "./custom-emoji";
9-
export * from "./extended-description";
10-
export * from "./domain-block";
11-
export * from "./familiar-followers";
12-
export * from "./featured-tags";
13-
export * from "./filter";
14-
export * from "./filter-keyword";
15-
export * from "./filter-result";
16-
export * from "./filter-status";
17-
export * from "./grouped-notifications";
18-
export * from "./identity-proof";
19-
export * from "./instance";
20-
export * from "./list";
21-
export * from "./marker";
22-
export * from "./media-attachment";
23-
export * from "./notification";
24-
export * from "./notification-request";
25-
export * from "./poll";
26-
export * from "./preference";
27-
export * from "./preview-card";
28-
export * from "./reaction";
29-
export * from "./relationship";
30-
export * from "./relationship-severance-event";
31-
export * from "./report";
32-
export * from "./role";
33-
export * from "./rule";
34-
export * from "./scheduled-status";
35-
export * from "./search";
36-
export * from "./status";
37-
export * from "./status-edit";
38-
export * from "./status-source";
39-
export * from "./suggestion";
40-
export * from "./tag";
41-
export * from "./token";
42-
export * from "./translation";
43-
export * from "./web-push-subscription";
1+
export type * from "./account";
2+
export type * as Admin from "./admin";
3+
export type * from "./activity";
4+
export type * from "./announcement";
5+
export type * from "./application";
6+
export type * from "./context";
7+
export type * from "./conversation";
8+
export type * from "./custom-emoji";
9+
export type * from "./extended-description";
10+
export type * from "./domain-block";
11+
export type * from "./familiar-followers";
12+
export type * from "./featured-tags";
13+
export type * from "./filter";
14+
export type * from "./filter-keyword";
15+
export type * from "./filter-result";
16+
export type * from "./filter-status";
17+
export type * from "./grouped-notifications";
18+
export type * from "./identity-proof";
19+
export type * from "./instance";
20+
export type * from "./list";
21+
export type * from "./marker";
22+
export type * from "./media-attachment";
23+
export type * from "./notification";
24+
export type * from "./notification-request";
25+
export type * from "./poll";
26+
export type * from "./preference";
27+
export type * from "./preview-card";
28+
export type * from "./reaction";
29+
export type * from "./relationship";
30+
export type * from "./relationship-severance-event";
31+
export type * from "./report";
32+
export type * from "./role";
33+
export type * from "./rule";
34+
export type * from "./scheduled-status";
35+
export type * from "./search";
36+
export type * from "./status";
37+
export type * from "./status-edit";
38+
export type * from "./status-source";
39+
export type * from "./suggestion";
40+
export type * from "./tag";
41+
export type * from "./token";
42+
export type * from "./translation";
43+
export type * from "./web-push-subscription";

src/mastodon/entities/v2/index.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
export * from "./filter";
2-
export * from "./instance";
3-
export * from "./notification-policy";
4-
export * from "./search";
1+
export type * from "./filter";
2+
export type * from "./instance";
3+
export type * from "./notification-policy";
4+
export type * from "./search";

src/mastodon/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
export * as mastodon from "./mastodon";
1+
export type * as mastodon from "./mastodon";

src/mastodon/mastodon.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
export * from "./entities";
2-
export * as rest from "./rest";
3-
export * as streaming from "./streaming";
4-
export * as oauth from "./oauth";
5-
export * from "./paginator";
6-
export * from "./repository";
1+
export type * from "./entities";
2+
export type * as rest from "./rest";
3+
export type * as streaming from "./streaming";
4+
export type * as oauth from "./oauth";
5+
export type * from "./paginator";
6+
export type * from "./repository";

src/mastodon/oauth/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
export * from "./client";
2-
export * from "./token-repository";
1+
export type * from "./client";
2+
export type * from "./token-repository";

src/mastodon/rest/index.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
export * from "./client";
2-
export * as v1 from "./v1";
3-
export * as v2 from "./v2";
1+
export type * from "./client";
2+
export type * as v1 from "./v1";
3+
export type * as v2 from "./v2";

src/mastodon/rest/v1/index.ts

Lines changed: 35 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,35 @@
1-
export * from "./account-repository";
2-
export * from "./admin";
3-
export * from "./announcement-repository";
4-
export * from "./app-repository";
5-
export * from "./block-repository";
6-
export * from "./bookmark-repository";
7-
export * from "./conversation-repository";
8-
export * from "./custom-emoji-repository";
9-
export * from "./directory-repository";
10-
export * from "./domain-block-repository";
11-
export * from "./email-repository";
12-
export * from "./endorsement-repository";
13-
export * from "./favourite-repository";
14-
export * from "./featured-tag-repository";
15-
export * from "./filter-repository";
16-
export * from "./follow-request-repository";
17-
export * from "./followed-tag-repository";
18-
export * from "./instance-repository";
19-
export * from "./list-repository";
20-
export * from "./marker-repository";
21-
export * from "./media-attachment-repository";
22-
export * from "./mute-repository";
23-
export * from "./notification-repository";
24-
export * from "./poll-repository";
25-
export * from "./preferences-repository";
26-
export * from "./push";
27-
export * from "./report-repository";
28-
export * from "./scheduled-status-repository";
29-
export * from "./search-repository";
30-
export * from "./status-repository";
31-
export * from "./suggestion-repository";
32-
export * from "./tag-repository";
33-
export * from "./timeline-repository";
34-
export * from "./trend-repository";
35-
export * from "./profile-repository";
1+
export type * from "./account-repository";
2+
export type * from "./admin";
3+
export type * from "./announcement-repository";
4+
export type * from "./app-repository";
5+
export type * from "./block-repository";
6+
export type * from "./bookmark-repository";
7+
export type * from "./conversation-repository";
8+
export type * from "./custom-emoji-repository";
9+
export type * from "./directory-repository";
10+
export type * from "./domain-block-repository";
11+
export type * from "./email-repository";
12+
export type * from "./endorsement-repository";
13+
export type * from "./favourite-repository";
14+
export type * from "./featured-tag-repository";
15+
export type * from "./filter-repository";
16+
export type * from "./follow-request-repository";
17+
export type * from "./followed-tag-repository";
18+
export type * from "./instance-repository";
19+
export type * from "./list-repository";
20+
export type * from "./marker-repository";
21+
export type * from "./media-attachment-repository";
22+
export type * from "./mute-repository";
23+
export type * from "./notification-repository";
24+
export type * from "./poll-repository";
25+
export type * from "./preferences-repository";
26+
export type * from "./push";
27+
export type * from "./report-repository";
28+
export type * from "./scheduled-status-repository";
29+
export type * from "./search-repository";
30+
export type * from "./status-repository";
31+
export type * from "./suggestion-repository";
32+
export type * from "./tag-repository";
33+
export type * from "./timeline-repository";
34+
export type * from "./trend-repository";
35+
export type * from "./profile-repository";

src/mastodon/rest/v2/index.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
export * from "./filter-repository";
2-
export * from "./instance-repository";
3-
export * from "./media-attachment-repository";
4-
export * from "./notification-repository";
5-
export * from "./search-repository";
6-
export * from "./suggestion-repository";
1+
export type * from "./filter-repository";
2+
export type * from "./instance-repository";
3+
export type * from "./media-attachment-repository";
4+
export type * from "./notification-repository";
5+
export type * from "./search-repository";
6+
export type * from "./suggestion-repository";

0 commit comments

Comments
 (0)