Mark several unused vars as such

This commit is contained in:
2026-01-10 08:54:51 -06:00
parent c7b8cd33da
commit 49dc0e3fe0
3 changed files with 5 additions and 5 deletions

View File

@@ -37,7 +37,7 @@ const processedRoutes: { [K in Method]: ProcessedRoute[] } = {
DELETE: [],
};
function isPromise<T>(value: T | Promise<T>): value is Promise<T> {
function _isPromise<T>(value: T | Promise<T>): value is Promise<T> {
return typeof (value as any)?.then === "function";
}

View File

@@ -15,8 +15,8 @@ type Message = {
text: AtLeastOne<string>;
};
const m1: Message = { timestamp: 123, source: "logging", text: ["foo"] };
const m2: Message = {
const _m1: Message = { timestamp: 123, source: "logging", text: ["foo"] };
const _m2: Message = {
timestamp: 321,
source: "diagnostic",
text: ["ok", "whatever"],

View File

@@ -41,7 +41,7 @@ const routes: Route[] = [
{
path: "/list",
methods: ["GET"],
handler: async (call: Call): Promise<Result> => {
handler: async (_call: Call): Promise<Result> => {
const code = httpCodes.success.OK;
const lr = (rr: Route[]) => {
const ret = rr.map((r: Route) => {
@@ -67,7 +67,7 @@ const routes: Route[] = [
`;
const result = nunjucks.renderString(template, { rrr });
const listing = lr(routes).join(", ");
const _listing = lr(routes).join(", ");
return {
code,
result,