Skip to content

Commit f753338

Browse files
committed
f
1 parent fcf779a commit f753338

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

app/common/typing.ts

+3
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,9 @@ export interface AuthClient {
7272
}
7373

7474
declare module 'egg' {
75+
// eslint-disable-next-line
76+
// @ts-ignore
77+
// avoid TS2310 Type 'EggAppConfig' recursively references itself as a base type.
7578
interface EggAppConfig {
7679
cnpmcore: CnpmcoreConfig;
7780
}

app/port/controller/PackageSyncController.ts

-2
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,6 @@ export class PackageSyncController extends AbstractController {
5959
if (!this.enableSync) {
6060
throw new ForbiddenError('Not allow to sync package');
6161
}
62-
// @ts-expect-error should auto import tracer plugin
6362
const tips = data.tips || `Sync cause by "${ctx.href}", parent traceId: ${ctx.tracer.traceId}`;
6463
const isAdmin = await this.userRoleManager.isAdmin(ctx);
6564

@@ -183,7 +182,6 @@ export class PackageSyncController extends AbstractController {
183182
async deprecatedCreateSyncTask(@Context() ctx: EggContext, @HTTPParam() fullname: string, @HTTPQuery() nodeps: string) {
184183
const options: SyncPackageTaskType = {
185184
fullname,
186-
// @ts-expect-error should auto import tracer plugin
187185
tips: `Sync cause by "${ctx.href}", parent traceId: ${ctx.tracer.traceId}`,
188186
skipDependencies: nodeps === 'true',
189187
syncDownloadData: false,

app/port/middleware/Tracing.ts

-2
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,6 @@ export async function Tracing(ctx: EggContext, next: Next) {
1111
// host: 'localhost:7001',
1212
// connection: 'keep-alive'
1313
// }
14-
// TODO: fix type
15-
// @ts-expect-error should auto import tracer plugin
1614
ctx.set('request-id', ctx.tracer.traceId);
1715
if (ctx.method !== 'HEAD') {
1816
ctx.logger.info('[Tracing] auth: %s, npm-command: %s, referer: %s, user-agent: %j',

0 commit comments

Comments
 (0)