mirror of
https://github.com/SukkaW/Surge.git
synced 2025-12-12 01:00:34 +08:00
Chore: improve types
This commit is contained in:
parent
ab14cf77cf
commit
df6bbb68a0
@ -65,7 +65,10 @@ export const downloadPreviousBuild = task(import.meta.path, async (span) => {
|
|||||||
const extract = tarStream.extract();
|
const extract = tarStream.extract();
|
||||||
|
|
||||||
pipeline(
|
pipeline(
|
||||||
Readable.fromWeb(resp.body as any),
|
Readable.fromWeb(
|
||||||
|
// @ts-expect-error -- DOM type is incompatible with Node type
|
||||||
|
resp.body
|
||||||
|
),
|
||||||
gunzip,
|
gunzip,
|
||||||
extract
|
extract
|
||||||
);
|
);
|
||||||
|
|||||||
@ -85,7 +85,8 @@ export class Cache<S = string> {
|
|||||||
if (type) {
|
if (type) {
|
||||||
this.type = type;
|
this.type = type;
|
||||||
} else {
|
} else {
|
||||||
this.type = 'string' as any;
|
// @ts-expect-error -- fallback type
|
||||||
|
this.type = 'string';
|
||||||
}
|
}
|
||||||
|
|
||||||
const db = new Database(path.join(this.cachePath, 'cache.db'));
|
const db = new Database(path.join(this.cachePath, 'cache.db'));
|
||||||
|
|||||||
@ -2303,7 +2303,6 @@ tiles.stadiamaps.com
|
|||||||
e3.365dm.com
|
e3.365dm.com
|
||||||
proxy.beyondwords.io
|
proxy.beyondwords.io
|
||||||
.images.arcpublishing.com
|
.images.arcpublishing.com
|
||||||
cdn.ziffstatic.com
|
|
||||||
static.euronews.com
|
static.euronews.com
|
||||||
static.killedbygoogle.com
|
static.killedbygoogle.com
|
||||||
cdn.pagic.org
|
cdn.pagic.org
|
||||||
|
|||||||
@ -1,10 +1,10 @@
|
|||||||
{
|
{
|
||||||
"compilerOptions": {
|
"compilerOptions": {
|
||||||
"target": "esnext",
|
"target": "esnext",
|
||||||
|
"lib": ["DOM", "DOM.Iterable"],
|
||||||
"moduleDetection": "force",
|
"moduleDetection": "force",
|
||||||
"module": "esnext",
|
"module": "esnext",
|
||||||
"moduleResolution": "bundler",
|
"moduleResolution": "bundler",
|
||||||
"types": ["bun-types"],
|
|
||||||
"allowImportingTsExtensions": true,
|
"allowImportingTsExtensions": true,
|
||||||
"allowJs": true,
|
"allowJs": true,
|
||||||
"noEmit": true,
|
"noEmit": true,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user