mirror of
https://github.com/SukkaW/Surge.git
synced 2026-01-29 01:51:52 +08:00
Chore: improve types
This commit is contained in:
@@ -85,7 +85,8 @@ export class Cache<S = string> {
|
||||
if (type) {
|
||||
this.type = type;
|
||||
} else {
|
||||
this.type = 'string' as any;
|
||||
// @ts-expect-error -- fallback type
|
||||
this.type = 'string';
|
||||
}
|
||||
|
||||
const db = new Database(path.join(this.cachePath, 'cache.db'));
|
||||
|
||||
Reference in New Issue
Block a user