We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9daddd7 commit 0640debCopy full SHA for 0640deb
packages/tsconfig-reference/copy/en/options/noUnusedParameters.md
@@ -13,3 +13,12 @@ const createDefaultKeyboard = (modelID: number) => {
13
return { type: "keyboard", modelID: defaultModelID };
14
};
15
```
16
+
17
+Parameters declaration with names starting with an underscore (`_`) are exempt from the unused parameter checking. e.g.:
18
19
+```ts twoslash
20
+// @noUnusedParameters
21
+const createDefaultKeyboard = (_modelID: number) => {
22
+ return { type: "keyboard" };
23
+};
24
+```
0 commit comments