Skip to content

Commit

Permalink
chore: update deno typos
Browse files Browse the repository at this point in the history
  • Loading branch information
pi0 committed Oct 18, 2024
1 parent 590a4a7 commit 095c538
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 30 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,8 @@
},
"devDependencies": {
"@cloudflare/workers-types": "^4.20241011.0",
"@deno/types": "^0.0.1",
"@types/bun": "^1.1.11",
"@types/deno": "^2.0.0",
"@types/eventsource": "^1.1.15",
"@types/node": "^22.7.6",
"@types/web": "^0.0.173",
Expand Down
31 changes: 12 additions & 19 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 1 addition & 5 deletions src/adapters/deno.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,7 @@ export interface DenoAdapter extends AdapterInstance {

export interface DenoOptions extends AdapterOptions {}

declare global {
const Deno: typeof import("@deno/types").Deno;
}

type WebSocketUpgrade = import("@deno/types").Deno.WebSocketUpgrade;
type WebSocketUpgrade = Deno.WebSocketUpgrade;
type ServeHandlerInfo = {
remoteAddr?: { transport: string; hostname: string; port: number };
};
Expand Down
3 changes: 0 additions & 3 deletions test/fixture/deno.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,6 @@

import denoAdapter from "../../src/adapters/deno.ts";

// @ts-ignore
import type * as _Deno from "../types/lib.deno.d.ts";

import { createDemo, getIndexHTML, handleDemoRoutes } from "./_shared.ts";

const ws = createDemo(denoAdapter);
Expand Down
4 changes: 2 additions & 2 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"strict": true,
"allowImportingTsExtensions": true,
"noEmit": true,
"types": ["node", "@cloudflare/workers-types"]
"types": ["node", "@cloudflare/workers-types", "deno"]
},
"include": ["src", "test"],
"include": ["src", "test"]
}

0 comments on commit 095c538

Please sign in to comment.