refactor(backend): use node16 for moduleResolution (#10938)
* refactor(backend): use node16 for moduleResolution
* update deps
* Update tsconfig.json
* ✌️
* revive KEYWORD
* restore strict-event-emitter-types dependency
* restore ms dependency
* cancel redundant import reorder
* fix
* Delete ms.ts
* remove rndstr
---------
Co-authored-by: Kagami Sascha Rosylight <saschanaz@outlook.com>
This commit is contained in:
parent
ef354e94f2
commit
8099bc24e1
29 changed files with 72 additions and 86 deletions
|
@ -1,7 +1,7 @@
|
|||
import { Inject, Injectable } from '@nestjs/common';
|
||||
import { In, Not } from 'typeorm';
|
||||
import * as Redis from 'ioredis';
|
||||
import Ajv from 'ajv';
|
||||
import _Ajv from 'ajv';
|
||||
import { ModuleRef } from '@nestjs/core';
|
||||
import { DI } from '@/di-symbols.js';
|
||||
import type { Config } from '@/config.js';
|
||||
|
@ -31,6 +31,7 @@ type IsMeAndIsUserDetailed<ExpectsMe extends boolean | null, Detailed extends bo
|
|||
Packed<'UserDetailed'> :
|
||||
Packed<'UserLite'>;
|
||||
|
||||
const Ajv = _Ajv.default;
|
||||
const ajv = new Ajv();
|
||||
|
||||
function isLocalUser(user: User): user is LocalUser;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue