Skip to content

Commit

Permalink
refactor(context): remove lint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
yusukebe committed Dec 25, 2024
1 parent bfd839a commit 949d815
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/context.ts
Original file line number Diff line number Diff line change
Expand Up @@ -752,10 +752,12 @@ export class Context<
this.#preparedHeaders = {}
}
this.#preparedHeaders['content-type'] = TEXT_PLAIN
// @ts-expect-error `Response` due to missing some types-only keys

return typeof arg === 'number'

Check failure on line 756 in src/context.ts

View workflow job for this annotation

GitHub Actions / Main

Type 'Response' is not assignable to type 'Response & TypedResponse<string, ContentfulStatusCode, "text">'.

Check failure on line 756 in src/context.ts

View workflow job for this annotation

GitHub Actions / Main

Type 'Response' is not assignable to type 'Response & TypedResponse<string, ContentfulStatusCode, "text">'.

Check failure on line 756 in src/context.ts

View workflow job for this annotation

GitHub Actions / Node.js v18.18.2

Type 'Response' is not assignable to type 'Response & TypedResponse<string, ContentfulStatusCode, "text">'.

Check failure on line 756 in src/context.ts

View workflow job for this annotation

GitHub Actions / workerd

Type 'Response' is not assignable to type 'Response & TypedResponse<string, ContentfulStatusCode, "text">'.

Check failure on line 756 in src/context.ts

View workflow job for this annotation

GitHub Actions / Node.js v20.x

Type 'Response' is not assignable to type 'Response & TypedResponse<string, ContentfulStatusCode, "text">'.

Check failure on line 756 in src/context.ts

View workflow job for this annotation

GitHub Actions / Node.js v22.x

Type 'Response' is not assignable to type 'Response & TypedResponse<string, ContentfulStatusCode, "text">'.
? this.#newResponse(text, arg, headers)
: this.#newResponse(text, arg)
? // @ts-expect-error `Response` due to missing some types-only keys

Check failure on line 757 in src/context.ts

View workflow job for this annotation

GitHub Actions / Main

Unused '@ts-expect-error' directive.

Check failure on line 757 in src/context.ts

View workflow job for this annotation

GitHub Actions / Main

Unused '@ts-expect-error' directive.

Check failure on line 757 in src/context.ts

View workflow job for this annotation

GitHub Actions / Node.js v18.18.2

Unused '@ts-expect-error' directive.

Check failure on line 757 in src/context.ts

View workflow job for this annotation

GitHub Actions / workerd

Unused '@ts-expect-error' directive.

Check failure on line 757 in src/context.ts

View workflow job for this annotation

GitHub Actions / Node.js v20.x

Unused '@ts-expect-error' directive.

Check failure on line 757 in src/context.ts

View workflow job for this annotation

GitHub Actions / Node.js v22.x

Unused '@ts-expect-error' directive.
this.#newResponse(text, arg, headers)
: // @ts-expect-error `Response` due to missing some types-only keys

Check failure on line 759 in src/context.ts

View workflow job for this annotation

GitHub Actions / Main

Unused '@ts-expect-error' directive.

Check failure on line 759 in src/context.ts

View workflow job for this annotation

GitHub Actions / Main

Unused '@ts-expect-error' directive.

Check failure on line 759 in src/context.ts

View workflow job for this annotation

GitHub Actions / Node.js v18.18.2

Unused '@ts-expect-error' directive.

Check failure on line 759 in src/context.ts

View workflow job for this annotation

GitHub Actions / workerd

Unused '@ts-expect-error' directive.

Check failure on line 759 in src/context.ts

View workflow job for this annotation

GitHub Actions / Node.js v20.x

Unused '@ts-expect-error' directive.

Check failure on line 759 in src/context.ts

View workflow job for this annotation

GitHub Actions / Node.js v22.x

Unused '@ts-expect-error' directive.
this.#newResponse(text, arg)
}

/**
Expand Down

0 comments on commit 949d815

Please sign in to comment.