From 61752d859e96c7dc4327d11caa4ab92979330345 Mon Sep 17 00:00:00 2001 From: Cursor Agent Date: Sun, 15 Nov 2026 03:56:39 +0000 Subject: [PATCH] chore(internals): drop unused string assertion in examples service Removes the unnecessary string assertion from ExamplesService.list. The declared return type already accepts the expression, and the assertion had no runtime effect. Repository suppressions for @typescript-eslint/no-unnecessary-type-assertion go from 194 to 193. Co-authored-by: Cory Rylan Signed-off-by: Cursor Agent --- projects/internals/tools/eslint-suppressions.json | 5 ----- projects/internals/tools/src/examples/service.ts | 2 +- 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/projects/internals/tools/eslint-suppressions.json b/projects/internals/tools/eslint-suppressions.json index d3eb3e1b4e..a25d8fe913 100644 --- a/projects/internals/tools/eslint-suppressions.json +++ b/projects/internals/tools/eslint-suppressions.json @@ -4,11 +4,6 @@ "count": 2 } }, - "src/examples/service.ts": { - "@typescript-eslint/no-unnecessary-type-assertion": { - "count": 1 - } - }, "src/packages/service.test.ts": { "@typescript-eslint/no-unnecessary-type-assertion": { "count": 1 diff --git a/projects/internals/tools/src/examples/service.ts b/projects/internals/tools/src/examples/service.ts index 24a2046cbf..4c22330814 100644 --- a/projects/internals/tools/src/examples/service.ts +++ b/projects/internals/tools/src/examples/service.ts @@ -56,7 +56,7 @@ export class ExamplesService { return (results as Example[]).map(e => ({ id: e.id, summary: e.summary })); } - return results as string; + return results; } @tool({