From 4f2d9725bb3c63c956b5562faf2563ac22473d57 Mon Sep 17 00:00:00 2001 From: Kagami Sascha Rosylight Date: Thu, 22 Dec 2022 21:44:21 +0900 Subject: [PATCH] style: fix `@typescript-eslint/consistent-type-imports` lint errors --- src/api.ts | 2 +- src/api.types.ts | 4 ++-- src/streaming.ts | 2 +- src/streaming.types.ts | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/api.ts b/src/api.ts index 2cf8488..010ab02 100644 --- a/src/api.ts +++ b/src/api.ts @@ -1,4 +1,4 @@ -import { Endpoints } from './api.types'; +import type { Endpoints } from './api.types'; const MK_API_ERROR = Symbol(); diff --git a/src/api.types.ts b/src/api.types.ts index 2a08af7..0cfa51c 100644 --- a/src/api.types.ts +++ b/src/api.types.ts @@ -1,5 +1,5 @@ -import { - Ad, Announcement, Antenna, App, AuthSession, Blocking, Channel, Clip, DateString, DetailedInstanceMetadata, DriveFile, DriveFolder, Following, FollowingFolloweePopulated, FollowingFollowerPopulated, FollowRequest, GalleryPost, Instance, InstanceMetadata, +import type { + Ad, Announcement, Antenna, App, AuthSession, Blocking, Channel, Clip, DateString, DetailedInstanceMetadata, DriveFile, DriveFolder, Following, FollowingFolloweePopulated, FollowingFollowerPopulated, FollowRequest, GalleryPost, Instance, LiteInstanceMetadata, MeDetailed, Note, NoteFavorite, OriginType, Page, ServerInfo, Stats, User, UserDetailed, UserGroup, UserList, UserSorting, Notification, NoteReaction, Signin, MessagingMessage, diff --git a/src/streaming.ts b/src/streaming.ts index 92b8319..57a88c7 100644 --- a/src/streaming.ts +++ b/src/streaming.ts @@ -1,7 +1,7 @@ import autobind from 'autobind-decorator'; import { EventEmitter } from 'eventemitter3'; import ReconnectingWebsocket from 'reconnecting-websocket'; -import { BroadcastEvents, Channels } from './streaming.types'; +import type { BroadcastEvents, Channels } from './streaming.types'; export function urlQuery(obj: Record): string { const params = Object.entries(obj) diff --git a/src/streaming.types.ts b/src/streaming.types.ts index f711b8d..d58b905 100644 --- a/src/streaming.types.ts +++ b/src/streaming.types.ts @@ -1,4 +1,4 @@ -import { Antenna, CustomEmoji, DriveFile, MeDetailed, MessagingMessage, Note, Notification, PageEvent, User, UserGroup } from './entities'; +import type { Antenna, CustomEmoji, DriveFile, MeDetailed, MessagingMessage, Note, Notification, PageEvent, User, UserGroup } from './entities'; type FIXME = any;