mirror of
https://github.com/LuanRT/YouTube.js.git
synced 2026-06-30 09:55:18 +00:00
chore(eslint): enforce the use of import type
This commit is contained in:
@@ -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.
|
||||
|
||||
@@ -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',
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { IDislikeRequest, DislikeEndpointOptions } from '../../../types/index.js';
|
||||
import type { IDislikeRequest, DislikeEndpointOptions } from '../../../types/index.js';
|
||||
|
||||
export const PATH = '/like/dislike';
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { IRemoveLikeRequest, RemoveLikeEndpointOptions } from '../../../types/index.js';
|
||||
import type { IRemoveLikeRequest, RemoveLikeEndpointOptions } from '../../../types/index.js';
|
||||
|
||||
export const PATH = '/like/removelike';
|
||||
|
||||
|
||||
@@ -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?];
|
||||
|
||||
Reference in New Issue
Block a user