Skip to content

Commit

Permalink
chore: temporally uses any in internal types...
Browse files Browse the repository at this point in the history
  • Loading branch information
kravetsone committed Aug 14, 2024
1 parent 7d01aff commit 641499b
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 7 deletions.
2 changes: 1 addition & 1 deletion deno.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@gramio/core",
"version": "0.0.33",
"version": "0.0.48",
"exports": "./src/index.ts",
"publish": {
"include": ["deno.json", "src", "README.md", "tsconfig.json"]
Expand Down
15 changes: 9 additions & 6 deletions src/bot.ts
Original file line number Diff line number Diff line change
Expand Up @@ -227,12 +227,15 @@ export class Bot<
const debug$api$method = debug$api.extend(method);
const url = `${this.options.api.baseURL}${this.options.token}/${method}`;

const reqOptions: Omit<
NonNullable<Parameters<typeof fetch>[1]>,
"headers"
> & {
headers: Headers;
} = {
// Omit<
// NonNullable<Parameters<typeof fetch>[1]>,
// "headers"
// > & {
// headers: Headers;
// }
// idk why it cause https://github.com/gramiojs/gramio/actions/runs/10388006206/job/28762703484
// also in logs types differs
const reqOptions: any = {
method: "POST",
...this.options.api.fetchOptions,
// @ts-ignore types node/bun and global missmatch
Expand Down

0 comments on commit 641499b

Please sign in to comment.