Skip to content

Commit

Permalink
Merge pull request #1258 from neet/use-export-type
Browse files Browse the repository at this point in the history
fix: Use `export type` statement for mastodon namespace to reduce bun…
  • Loading branch information
neet authored Jan 4, 2025
2 parents b6ae4c0 + e725e95 commit 53cd1e8
Show file tree
Hide file tree
Showing 11 changed files with 116 additions and 116 deletions.
4 changes: 2 additions & 2 deletions src/mastodon/entities/index.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
export * as v1 from "./v1";
export * as v2 from "./v2";
export type * as v1 from "./v1";
export type * as v2 from "./v2";
24 changes: 12 additions & 12 deletions src/mastodon/entities/v1/admin/index.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
export * from "./account";
export * from "./canonical-email-block";
export * from "./cohort";
export * from "./dimension";
export * from "./domain-allow";
export * from "./domain-block";
export * from "./email-domain-block";
export * from "./ip-block";
export * from "./ip";
export * from "./measure";
export * from "./report";
export * from "./tag";
export type * from "./account";
export type * from "./canonical-email-block";
export type * from "./cohort";
export type * from "./dimension";
export type * from "./domain-allow";
export type * from "./domain-block";
export type * from "./email-domain-block";
export type * from "./ip-block";
export type * from "./ip";
export type * from "./measure";
export type * from "./report";
export type * from "./tag";
86 changes: 43 additions & 43 deletions src/mastodon/entities/v1/index.ts
Original file line number Diff line number Diff line change
@@ -1,43 +1,43 @@
export * from "./account";
export * as Admin from "./admin";
export * from "./activity";
export * from "./announcement";
export * from "./application";
export * from "./context";
export * from "./conversation";
export * from "./custom-emoji";
export * from "./extended-description";
export * from "./domain-block";
export * from "./familiar-followers";
export * from "./featured-tags";
export * from "./filter";
export * from "./filter-keyword";
export * from "./filter-result";
export * from "./filter-status";
export * from "./grouped-notifications";
export * from "./identity-proof";
export * from "./instance";
export * from "./list";
export * from "./marker";
export * from "./media-attachment";
export * from "./notification";
export * from "./notification-request";
export * from "./poll";
export * from "./preference";
export * from "./preview-card";
export * from "./reaction";
export * from "./relationship";
export * from "./relationship-severance-event";
export * from "./report";
export * from "./role";
export * from "./rule";
export * from "./scheduled-status";
export * from "./search";
export * from "./status";
export * from "./status-edit";
export * from "./status-source";
export * from "./suggestion";
export * from "./tag";
export * from "./token";
export * from "./translation";
export * from "./web-push-subscription";
export type * from "./account";
export type * as Admin from "./admin";
export type * from "./activity";
export type * from "./announcement";
export type * from "./application";
export type * from "./context";
export type * from "./conversation";
export type * from "./custom-emoji";
export type * from "./extended-description";
export type * from "./domain-block";
export type * from "./familiar-followers";
export type * from "./featured-tags";
export type * from "./filter";
export type * from "./filter-keyword";
export type * from "./filter-result";
export type * from "./filter-status";
export type * from "./grouped-notifications";
export type * from "./identity-proof";
export type * from "./instance";
export type * from "./list";
export type * from "./marker";
export type * from "./media-attachment";
export type * from "./notification";
export type * from "./notification-request";
export type * from "./poll";
export type * from "./preference";
export type * from "./preview-card";
export type * from "./reaction";
export type * from "./relationship";
export type * from "./relationship-severance-event";
export type * from "./report";
export type * from "./role";
export type * from "./rule";
export type * from "./scheduled-status";
export type * from "./search";
export type * from "./status";
export type * from "./status-edit";
export type * from "./status-source";
export type * from "./suggestion";
export type * from "./tag";
export type * from "./token";
export type * from "./translation";
export type * from "./web-push-subscription";
8 changes: 4 additions & 4 deletions src/mastodon/entities/v2/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
export * from "./filter";
export * from "./instance";
export * from "./notification-policy";
export * from "./search";
export type * from "./filter";
export type * from "./instance";
export type * from "./notification-policy";
export type * from "./search";
2 changes: 1 addition & 1 deletion src/mastodon/index.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export * as mastodon from "./mastodon";
export type * as mastodon from "./mastodon";
12 changes: 6 additions & 6 deletions src/mastodon/mastodon.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
export * from "./entities";
export * as rest from "./rest";
export * as streaming from "./streaming";
export * as oauth from "./oauth";
export * from "./paginator";
export * from "./repository";
export type * from "./entities";
export type * as rest from "./rest";
export type * as streaming from "./streaming";
export type * as oauth from "./oauth";
export type * from "./paginator";
export type * from "./repository";
4 changes: 2 additions & 2 deletions src/mastodon/oauth/index.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
export * from "./client";
export * from "./token-repository";
export type * from "./client";
export type * from "./token-repository";
6 changes: 3 additions & 3 deletions src/mastodon/rest/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
export * from "./client";
export * as v1 from "./v1";
export * as v2 from "./v2";
export type * from "./client";
export type * as v1 from "./v1";
export type * as v2 from "./v2";
70 changes: 35 additions & 35 deletions src/mastodon/rest/v1/index.ts
Original file line number Diff line number Diff line change
@@ -1,35 +1,35 @@
export * from "./account-repository";
export * from "./admin";
export * from "./announcement-repository";
export * from "./app-repository";
export * from "./block-repository";
export * from "./bookmark-repository";
export * from "./conversation-repository";
export * from "./custom-emoji-repository";
export * from "./directory-repository";
export * from "./domain-block-repository";
export * from "./email-repository";
export * from "./endorsement-repository";
export * from "./favourite-repository";
export * from "./featured-tag-repository";
export * from "./filter-repository";
export * from "./follow-request-repository";
export * from "./followed-tag-repository";
export * from "./instance-repository";
export * from "./list-repository";
export * from "./marker-repository";
export * from "./media-attachment-repository";
export * from "./mute-repository";
export * from "./notification-repository";
export * from "./poll-repository";
export * from "./preferences-repository";
export * from "./push";
export * from "./report-repository";
export * from "./scheduled-status-repository";
export * from "./search-repository";
export * from "./status-repository";
export * from "./suggestion-repository";
export * from "./tag-repository";
export * from "./timeline-repository";
export * from "./trend-repository";
export * from "./profile-repository";
export type * from "./account-repository";
export type * from "./admin";
export type * from "./announcement-repository";
export type * from "./app-repository";
export type * from "./block-repository";
export type * from "./bookmark-repository";
export type * from "./conversation-repository";
export type * from "./custom-emoji-repository";
export type * from "./directory-repository";
export type * from "./domain-block-repository";
export type * from "./email-repository";
export type * from "./endorsement-repository";
export type * from "./favourite-repository";
export type * from "./featured-tag-repository";
export type * from "./filter-repository";
export type * from "./follow-request-repository";
export type * from "./followed-tag-repository";
export type * from "./instance-repository";
export type * from "./list-repository";
export type * from "./marker-repository";
export type * from "./media-attachment-repository";
export type * from "./mute-repository";
export type * from "./notification-repository";
export type * from "./poll-repository";
export type * from "./preferences-repository";
export type * from "./push";
export type * from "./report-repository";
export type * from "./scheduled-status-repository";
export type * from "./search-repository";
export type * from "./status-repository";
export type * from "./suggestion-repository";
export type * from "./tag-repository";
export type * from "./timeline-repository";
export type * from "./trend-repository";
export type * from "./profile-repository";
12 changes: 6 additions & 6 deletions src/mastodon/rest/v2/index.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
export * from "./filter-repository";
export * from "./instance-repository";
export * from "./media-attachment-repository";
export * from "./notification-repository";
export * from "./search-repository";
export * from "./suggestion-repository";
export type * from "./filter-repository";
export type * from "./instance-repository";
export type * from "./media-attachment-repository";
export type * from "./notification-repository";
export type * from "./search-repository";
export type * from "./suggestion-repository";
4 changes: 2 additions & 2 deletions src/mastodon/streaming/index.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
export * from "./client";
export * from "./event";
export type * from "./client";
export type * from "./event";

0 comments on commit 53cd1e8

Please sign in to comment.