Skip to content

Commit 64bab2d

Browse files
committed
chore: remove unused type
1 parent 93c7ae4 commit 64bab2d

4 files changed

Lines changed: 15 additions & 27 deletions

File tree

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
"@changesets/cli": "^2.29.7",
2727
"@commitlint/cli": "^20.1.0",
2828
"@commitlint/config-conventional": "^20.0.0",
29-
"@resolid/config": "^3.10.2",
29+
"@resolid/config": "^3.10.3",
3030
"@svitejs/changesets-changelog-github-compact": "^1.2.0",
3131
"@tailwindcss/language-server": "^0.14.29",
3232
"@types/node": "^24.10.1",

packages/cache/src/stores/null-cache.ts

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,14 @@
11
import type { CacheStore } from "../types";
22

33
export class NullCache implements Required<CacheStore> {
4-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
5-
async get<T>(_: string): Promise<T> {
4+
async get<T>(_key: string): Promise<T> {
65
return undefined as T;
76
}
87

9-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
10-
async set(_key: string, _value: string, _ttl?: number): Promise<boolean> {
8+
async set(__key: string, _value: string, _ttl?: number): Promise<boolean> {
119
return true;
1210
}
1311

14-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
1512
async del(_key: string): Promise<boolean> {
1613
return true;
1714
}
@@ -20,21 +17,18 @@ export class NullCache implements Required<CacheStore> {
2017
return true;
2118
}
2219

23-
async getMultiple<T>(_keys: string[]): Promise<(T | undefined)[]> {
24-
return _keys.map(() => undefined);
20+
async getMultiple<T>(keys: string[]): Promise<(T | undefined)[]> {
21+
return keys.map(() => undefined);
2522
}
2623

27-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
2824
async setMultiple(_values: Record<string, string>, _ttl?: number): Promise<boolean> {
2925
return true;
3026
}
3127

32-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
3328
async delMultiple(_keys: string[]): Promise<boolean> {
3429
return true;
3530
}
3631

37-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
3832
async has(_key: string): Promise<boolean> {
3933
return false;
4034
}

packages/dev/src/vite/utils.ts

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,10 @@
11
import type { BuildManifest, Config as ReactRouterConfig } from "@react-router/dev/config";
22
import { makeRe } from "minimatch";
3-
import type http from "node:http";
43
import { join, relative } from "node:path";
54
import type { UserConfig } from "vite";
65
import { normalizePath } from "vite";
76
import type { VitePluginOptions } from "../config";
87

9-
export type Fetch = (
10-
request: Request,
11-
env: { incoming: http.IncomingMessage; outgoing: http.ServerResponse },
12-
) => Promise<Response>;
13-
148
export type ReactRouterPluginContext = {
159
rootDirectory: string;
1610
reactRouterConfig: Required<ReactRouterConfig>;

pnpm-lock.yaml

Lines changed: 10 additions & 10 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)