Skip to content

Commit

Permalink
Moving from Better-TypeScript
Browse files Browse the repository at this point in the history
I really like that library, but I think I only want to use in in places I fully have to. Now that my Service Worker is implemented in full plain TS, rather than JSDoc JS, I can use the plain standard library types again. It's still not as simple as just using a plain `<reference>` directive, but all of the types are indeed right!

microsoft/TypeScript#14877
https://github.com/BenjaminAster/Better-TypeScript
  • Loading branch information
Offroaders123 committed Jan 22, 2024
1 parent 9ca70f9 commit e4056db
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 12 deletions.
10 changes: 0 additions & 10 deletions package-lock.json

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

1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
"nbtify": "^1.85.0"
},
"devDependencies": {
"better-typescript": "^0.1.7",
"new-javascript": "^0.4.2",
"sass": "^1.70.0",
"typescript": "^5.3.3",
Expand Down
4 changes: 3 additions & 1 deletion src/service-worker.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
/// <reference no-default-lib="true"/>
/// <reference types="better-typescript/worker.d.ts"/>
/// <reference lib="ESNext"/>
/// <reference lib="WebWorker"/>

declare var self: ServiceWorkerGlobalScope;
declare var clients: Clients;

const NAME = "Dovetail";
const VERSION = "v2.1.6";
Expand Down

0 comments on commit e4056db

Please sign in to comment.