1
0
mirror of https://github.com/misskey-dev/misskey.git synced 2026-07-25 10:54:56 +02:00

refactor: avoid using default import

This commit is contained in:
kakkokari-gtyih
2026-06-27 18:28:31 +09:00
parent de6709852a
commit 5784df2ff0
5 changed files with 5 additions and 5 deletions

View File

@@ -6,7 +6,7 @@
import { randomUUID } from 'node:crypto';
import * as fs from 'node:fs';
import { Inject, Injectable } from '@nestjs/common';
import sharp from 'sharp';
import { sharp } from 'sharp';
import type { Sharp } from 'sharp';
import { sharpBmp } from '@misskey-dev/sharp-read-bmp';
import { In, IsNull } from 'typeorm';

View File

@@ -4,7 +4,7 @@
*/
import { Injectable } from '@nestjs/common';
import sharp from 'sharp';
import { sharp } from 'sharp';
import type { Sharp, WebpOptions, AvifOptions } from 'sharp';
export type IImage = {

View File

@@ -4,7 +4,7 @@
*/
import * as fs from 'node:fs';
import sharp from 'sharp';
import { sharp } from 'sharp';
import { sharpBmp } from '@misskey-dev/sharp-read-bmp';
import type { Config } from '@/config.js';
import { FILE_TYPE_BROWSERSAFE } from '@/const.js';

View File

@@ -7,7 +7,7 @@ import { randomUUID } from 'node:crypto';
import { resolve } from 'node:path';
import { Inject, Injectable } from '@nestjs/common';
import ms from 'ms';
import sharp from 'sharp';
import { sharp } from 'sharp';
import { In, IsNull } from 'typeorm';
import fastifyStatic from '@fastify/static';
import fastifyProxy from '@fastify/http-proxy';

View File

@@ -8,7 +8,7 @@ import * as path from 'node:path';
import fastifyStatic from '@fastify/static';
import Fastify, { type FastifyInstance } from 'fastify';
import { describe, expect, test, beforeAll, afterAll, afterEach } from 'vitest';
import sharp from 'sharp';
import { sharp } from 'sharp';
import { DataSource, type Repository } from 'typeorm';
import { initTestDb, randomString } from '../../utils.js';
import type { AiService } from '@/core/AiService.js';