Skip to content

Fix Typescript unused value error on question 03312-easy-parameters - #37917

Open
7TIN wants to merge 1 commit into
type-challenges:mainfrom
7TIN:issue/easy
Open

7TIN wants to merge 1 commit into
type-challenges:mainfrom
7TIN:issue/easy

Conversation

@7TIN

@7TIN 7TIN commented Jan 1, 2026

Copy link
Copy Markdown

TypeScript is throwing a "value declared but never used" error for the unused parameters in the test cases for question (03312-easy-parameters), which ends up causing a compilation error on the site despite the answer being correct.

added _ prefix to ignore the unused parameters

function foo(_arg1: string, _arg2: number): void {}
function bar(_arg1: boolean, _arg2: { a: 'A' }): void {}

Error Image of site

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant