Fix import related TypeScript errors (#9321)
* Add missing @types packages * Fix TS1272 type only imports * Fix TS2821 import assertion
This commit is contained in:
		 Kagami Sascha Rosylight
					Kagami Sascha Rosylight
				
			
				
					committed by
					
						 GitHub
						GitHub
					
				
			
			
				
	
			
			
			 GitHub
						GitHub
					
				
			
						parent
						
							f30d54fe88
						
					
				
				
					commit
					4b98920f02
				
			| @@ -9,7 +9,6 @@ import ms from 'ms'; | ||||
| import sharp from 'sharp'; | ||||
| import pug from 'pug'; | ||||
| import { In, IsNull } from 'typeorm'; | ||||
| import { FastifyInstance, FastifyPluginOptions, FastifyReply } from 'fastify'; | ||||
| import fastifyStatic from '@fastify/static'; | ||||
| import fastifyView from '@fastify/view'; | ||||
| import fastifyCookie from '@fastify/cookie'; | ||||
| @@ -31,6 +30,7 @@ import { bindThis } from '@/decorators.js'; | ||||
| import manifest from './manifest.json' assert { type: 'json' }; | ||||
| import { FeedService } from './FeedService.js'; | ||||
| import { UrlPreviewService } from './UrlPreviewService.js'; | ||||
| import type { FastifyInstance, FastifyPluginOptions, FastifyReply } from 'fastify'; | ||||
|  | ||||
| const _filename = fileURLToPath(import.meta.url); | ||||
| const _dirname = dirname(_filename); | ||||
|   | ||||
| @@ -1,6 +1,5 @@ | ||||
| import { Inject, Injectable } from '@nestjs/common'; | ||||
| import summaly from 'summaly'; | ||||
| import { FastifyRequest, FastifyReply } from 'fastify'; | ||||
| import { DI } from '@/di-symbols.js'; | ||||
| import type { UsersRepository } from '@/models/index.js'; | ||||
| import type { Config } from '@/config.js'; | ||||
| @@ -10,6 +9,7 @@ import type Logger from '@/logger.js'; | ||||
| import { query } from '@/misc/prelude/url.js'; | ||||
| import { LoggerService } from '@/core/LoggerService.js'; | ||||
| import { bindThis } from '@/decorators.js'; | ||||
| import type { FastifyRequest, FastifyReply } from 'fastify'; | ||||
|  | ||||
| @Injectable() | ||||
| export class UrlPreviewService { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user