Skip to content

Commit

Permalink
fix: ignore duplicate identifier
Browse files Browse the repository at this point in the history
  • Loading branch information
fengmk2 committed Feb 2, 2025
1 parent 58f097a commit 66c114b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@
"@types/type-is": "^1.6.7",
"beautify-benchmark": "^0.2.4",
"benchmark": "^2.1.4",
"egg": "^4.0.1",
"egg": "^4.0.4",
"egg-view-nunjucks": "^2.3.0",
"eslint": "8",
"eslint-config-egg": "14",
Expand Down Expand Up @@ -111,5 +111,6 @@
"src"
],
"types": "./dist/commonjs/index.d.ts",
"main": "./dist/commonjs/index.js"
"main": "./dist/commonjs/index.js",
"module": "./dist/esm/index.js"
}
3 changes: 3 additions & 0 deletions src/app/extend/context.ts
Original file line number Diff line number Diff line change
Expand Up @@ -270,9 +270,12 @@ export default class SecurityContext extends Context {

declare module '@eggjs/core' {
interface Context {
// @ts-ignore

Check failure on line 273 in src/app/extend/context.ts

View workflow job for this annotation

GitHub Actions / Node.js / Test (macos-latest, 20)

Use "@ts-expect-error" instead of "@ts-ignore", as "@ts-ignore" will do nothing if the following line is error-free

Check failure on line 273 in src/app/extend/context.ts

View workflow job for this annotation

GitHub Actions / Node.js / Test (macos-latest, 22)

Use "@ts-expect-error" instead of "@ts-ignore", as "@ts-ignore" will do nothing if the following line is error-free

Check failure on line 273 in src/app/extend/context.ts

View workflow job for this annotation

GitHub Actions / Node.js / Test (macos-latest, 18.19.0)

Use "@ts-expect-error" instead of "@ts-ignore", as "@ts-ignore" will do nothing if the following line is error-free

Check failure on line 273 in src/app/extend/context.ts

View workflow job for this annotation

GitHub Actions / Node.js / Test (ubuntu-latest, 18.19.0)

Use "@ts-expect-error" instead of "@ts-ignore", as "@ts-ignore" will do nothing if the following line is error-free

Check failure on line 273 in src/app/extend/context.ts

View workflow job for this annotation

GitHub Actions / Node.js / Test (ubuntu-latest, 20)

Use "@ts-expect-error" instead of "@ts-ignore", as "@ts-ignore" will do nothing if the following line is error-free

Check failure on line 273 in src/app/extend/context.ts

View workflow job for this annotation

GitHub Actions / Node.js / Test (ubuntu-latest, 22)

Use "@ts-expect-error" instead of "@ts-ignore", as "@ts-ignore" will do nothing if the following line is error-free

Check failure on line 273 in src/app/extend/context.ts

View workflow job for this annotation

GitHub Actions / Node.js / Test (windows-latest, 18.19.0)

Use "@ts-expect-error" instead of "@ts-ignore", as "@ts-ignore" will do nothing if the following line is error-free

Check failure on line 273 in src/app/extend/context.ts

View workflow job for this annotation

GitHub Actions / Node.js / Test (windows-latest, 20)

Use "@ts-expect-error" instead of "@ts-ignore", as "@ts-ignore" will do nothing if the following line is error-free

Check failure on line 273 in src/app/extend/context.ts

View workflow job for this annotation

GitHub Actions / Node.js / Test (windows-latest, 22)

Use "@ts-expect-error" instead of "@ts-ignore", as "@ts-ignore" will do nothing if the following line is error-free
get securityOptions(): Partial<SecurityConfig & SecurityHelperConfig>;
isSafeDomain(domain: string, customWhiteList?: string[]): boolean;
// @ts-ignore

Check failure on line 276 in src/app/extend/context.ts

View workflow job for this annotation

GitHub Actions / Node.js / Test (macos-latest, 20)

Use "@ts-expect-error" instead of "@ts-ignore", as "@ts-ignore" will do nothing if the following line is error-free

Check failure on line 276 in src/app/extend/context.ts

View workflow job for this annotation

GitHub Actions / Node.js / Test (macos-latest, 22)

Use "@ts-expect-error" instead of "@ts-ignore", as "@ts-ignore" will do nothing if the following line is error-free

Check failure on line 276 in src/app/extend/context.ts

View workflow job for this annotation

GitHub Actions / Node.js / Test (macos-latest, 18.19.0)

Use "@ts-expect-error" instead of "@ts-ignore", as "@ts-ignore" will do nothing if the following line is error-free

Check failure on line 276 in src/app/extend/context.ts

View workflow job for this annotation

GitHub Actions / Node.js / Test (ubuntu-latest, 18.19.0)

Use "@ts-expect-error" instead of "@ts-ignore", as "@ts-ignore" will do nothing if the following line is error-free

Check failure on line 276 in src/app/extend/context.ts

View workflow job for this annotation

GitHub Actions / Node.js / Test (ubuntu-latest, 20)

Use "@ts-expect-error" instead of "@ts-ignore", as "@ts-ignore" will do nothing if the following line is error-free

Check failure on line 276 in src/app/extend/context.ts

View workflow job for this annotation

GitHub Actions / Node.js / Test (ubuntu-latest, 22)

Use "@ts-expect-error" instead of "@ts-ignore", as "@ts-ignore" will do nothing if the following line is error-free

Check failure on line 276 in src/app/extend/context.ts

View workflow job for this annotation

GitHub Actions / Node.js / Test (windows-latest, 18.19.0)

Use "@ts-expect-error" instead of "@ts-ignore", as "@ts-ignore" will do nothing if the following line is error-free

Check failure on line 276 in src/app/extend/context.ts

View workflow job for this annotation

GitHub Actions / Node.js / Test (windows-latest, 20)

Use "@ts-expect-error" instead of "@ts-ignore", as "@ts-ignore" will do nothing if the following line is error-free

Check failure on line 276 in src/app/extend/context.ts

View workflow job for this annotation

GitHub Actions / Node.js / Test (windows-latest, 22)

Use "@ts-expect-error" instead of "@ts-ignore", as "@ts-ignore" will do nothing if the following line is error-free
get nonce(): string;
// @ts-ignore

Check failure on line 278 in src/app/extend/context.ts

View workflow job for this annotation

GitHub Actions / Node.js / Test (macos-latest, 20)

Use "@ts-expect-error" instead of "@ts-ignore", as "@ts-ignore" will do nothing if the following line is error-free

Check failure on line 278 in src/app/extend/context.ts

View workflow job for this annotation

GitHub Actions / Node.js / Test (macos-latest, 22)

Use "@ts-expect-error" instead of "@ts-ignore", as "@ts-ignore" will do nothing if the following line is error-free

Check failure on line 278 in src/app/extend/context.ts

View workflow job for this annotation

GitHub Actions / Node.js / Test (macos-latest, 18.19.0)

Use "@ts-expect-error" instead of "@ts-ignore", as "@ts-ignore" will do nothing if the following line is error-free

Check failure on line 278 in src/app/extend/context.ts

View workflow job for this annotation

GitHub Actions / Node.js / Test (ubuntu-latest, 18.19.0)

Use "@ts-expect-error" instead of "@ts-ignore", as "@ts-ignore" will do nothing if the following line is error-free

Check failure on line 278 in src/app/extend/context.ts

View workflow job for this annotation

GitHub Actions / Node.js / Test (ubuntu-latest, 20)

Use "@ts-expect-error" instead of "@ts-ignore", as "@ts-ignore" will do nothing if the following line is error-free

Check failure on line 278 in src/app/extend/context.ts

View workflow job for this annotation

GitHub Actions / Node.js / Test (ubuntu-latest, 22)

Use "@ts-expect-error" instead of "@ts-ignore", as "@ts-ignore" will do nothing if the following line is error-free

Check failure on line 278 in src/app/extend/context.ts

View workflow job for this annotation

GitHub Actions / Node.js / Test (windows-latest, 18.19.0)

Use "@ts-expect-error" instead of "@ts-ignore", as "@ts-ignore" will do nothing if the following line is error-free

Check failure on line 278 in src/app/extend/context.ts

View workflow job for this annotation

GitHub Actions / Node.js / Test (windows-latest, 20)

Use "@ts-expect-error" instead of "@ts-ignore", as "@ts-ignore" will do nothing if the following line is error-free

Check failure on line 278 in src/app/extend/context.ts

View workflow job for this annotation

GitHub Actions / Node.js / Test (windows-latest, 22)

Use "@ts-expect-error" instead of "@ts-ignore", as "@ts-ignore" will do nothing if the following line is error-free
get csrf(): string;
ensureCsrfSecret(rotate?: boolean): void;
rotateCsrfSecret(): void;
Expand Down

0 comments on commit 66c114b

Please sign in to comment.