mirror of
https://github.com/LuanRT/YouTube.js.git
synced 2026-06-28 00:56:23 +00:00
chore(eslint): enforce the use of import type
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
import { Jinter } from 'jintr';
|
||||
import { VMPrimative } from '../../types/PlatformShim.js';
|
||||
import type { VMPrimative } from '../../types/PlatformShim.js';
|
||||
|
||||
export default function evaluate(code: string, env: Record<string, VMPrimative>) {
|
||||
const runtime = new Jinter(code);
|
||||
|
||||
@@ -8,10 +8,10 @@ import {
|
||||
FormData,
|
||||
File
|
||||
} from 'undici';
|
||||
import { ICache } from '../types/Cache.js';
|
||||
import type { ICache } from '../types/Cache.js';
|
||||
import { Platform } from '../utils/Utils.js';
|
||||
import crypto from 'crypto';
|
||||
import { FetchFunction } from '../types/PlatformShim.js';
|
||||
import type { FetchFunction } from '../types/PlatformShim.js';
|
||||
import path from 'path';
|
||||
import os from 'os';
|
||||
import fs from 'fs/promises';
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
// Deno Platform Support
|
||||
import { ICache } from '../types/Cache.js';
|
||||
import type { ICache } from '../types/Cache.js';
|
||||
import { Platform } from '../utils/Utils.js';
|
||||
import sha1Hash from './polyfills/web-crypto.js';
|
||||
import package_json from '../../package.json' assert { type: 'json' };
|
||||
|
||||
Reference in New Issue
Block a user