chore(eslint): enforce the use of import type

This commit is contained in:
LuanRT
2023-04-28 22:35:09 -03:00
parent 75ea09dde8
commit 3a7e58d2b9
45 changed files with 106 additions and 83 deletions

View File

@@ -2,8 +2,8 @@ import { Platform, getRandomUserAgent, getStringBetweenStrings, PlayerError } fr
import Constants from '../utils/Constants.js';
import { ICache } from '../types/Cache.js';
import { FetchFunction } from '../types/PlatformShim.js';
import type { ICache } from '../types/Cache.js';
import type { FetchFunction } from '../types/PlatformShim.js';
/**
* Represents YouTube's player script. This is required to decipher signatures.

View File

@@ -4,11 +4,13 @@ import Actions from './Actions.js';
import Player from './Player.js';
import Proto from '../proto/index.js';
import { ICache } from '../types/Cache.js';
import { FetchFunction } from '../types/PlatformShim.js';
import type { ICache } from '../types/Cache.js';
import type { FetchFunction } from '../types/PlatformShim.js';
import HTTPClient from '../utils/HTTPClient.js';
import { DeviceCategory, getRandomUserAgent, InnertubeError, Platform, SessionError } from '../utils/Utils.js';
import OAuth, { Credentials, OAuthAuthErrorEventHandler, OAuthAuthEventHandler, OAuthAuthPendingEventHandler } from './OAuth.js';
import type { DeviceCategory} from '../utils/Utils.js';
import { getRandomUserAgent, InnertubeError, Platform, SessionError } from '../utils/Utils.js';
import type { Credentials, OAuthAuthErrorEventHandler, OAuthAuthEventHandler, OAuthAuthPendingEventHandler } from './OAuth.js';
import OAuth from './OAuth.js';
export enum ClientType {
WEB = 'WEB',

View File

@@ -1,4 +1,4 @@
import { IDislikeRequest, DislikeEndpointOptions } from '../../../types/index.js';
import type { IDislikeRequest, DislikeEndpointOptions } from '../../../types/index.js';
export const PATH = '/like/dislike';

View File

@@ -1,4 +1,4 @@
import { IRemoveLikeRequest, RemoveLikeEndpointOptions } from '../../../types/index.js';
import type { IRemoveLikeRequest, RemoveLikeEndpointOptions } from '../../../types/index.js';
export const PATH = '/like/removelike';

View File

@@ -1,9 +1,12 @@
import Actions, { ApiResponse } from '../Actions.js';
import type { ApiResponse } from '../Actions.js';
import type Actions from '../Actions.js';
import Constants from '../../utils/Constants.js';
import FormatUtils, { DownloadOptions, FormatFilter, FormatOptions, URLTransformer } from '../../utils/FormatUtils.js';
import type { DownloadOptions, FormatFilter, FormatOptions, URLTransformer } from '../../utils/FormatUtils.js';
import FormatUtils from '../../utils/FormatUtils.js';
import { InnertubeError } from '../../utils/Utils.js';
import Format from '../../parser/classes/misc/Format.js';
import Parser, { INextResponse, IPlayerResponse } from '../../parser/index.js';
import type Format from '../../parser/classes/misc/Format.js';
import type { INextResponse, IPlayerResponse } from '../../parser/index.js';
import Parser from '../../parser/index.js';
export default class MediaInfo {
#page: [IPlayerResponse, INextResponse?];