TSConfig

noUnusedLocals

Report errors on unused local variables.

ts
const createKeyboard = (modelID: number) => {
const defaultModelID = 23;
'defaultModelID' is declared but its value is never read.6133'defaultModelID' is declared but its value is never read.
return { type: "keyboard", modelID };
};
Try