valid: (value: string) => void
but {valid(value) {} }
error "Parameter 'value' implicitly has an 'any' type."
#60058
Labels
Duplicate
An existing issue was already created
🔎 Search Terms
function inference any
🕗 Version & Regression Information
⏯ Playground Link
https://www.typescriptlang.org/play/?noUncheckedIndexedAccess=true&useDefineForClassFields=true&allowUnreachableCode=true&allowUnusedLabels=true&downlevelIteration=true&noEmitHelpers=true&noStrictGenericChecks=true&noUnusedLocals=true&noUnusedParameters=true&preserveConstEnums=true&removeComments=true&importHelpers=true&experimentalDecorators=true&emitDecoratorMetadata=true&isolatedModules=true&isolatedDeclarations=false&allowUmdGlobalAccess=true&exactOptionalPropertyTypes=true&noFallthroughCasesInSwitch=true&noImplicitOverride=true&noPropertyAccessFromIndexSignature=true&useUnknownInCatchVariables=true&strictBuiltinIteratorReturn=true&noImplicitUseStrict=true&suppressImplicitAnyIndexErrors=true&preserveValueImports=true&keyofStringsOnly=true&suppressExcessPropertyErrors=true&noCheck=false&noErrorTruncation=true&preserveWatchOutput=true&verbatimModuleSyntax=true&allowSyntheticDefaultImports=true&allowArbitraryExtensions=true&noUncheckedSideEffectImports=true&resolvePackageJsonImports=true&resolvePackageJsonExports=true&allowImportingTsExtensions=true&disableSourceOfProjectReferenceRedirect=true&inlineSourceMap=true&inlineSources=true&stripInternal=true&pretty=true&ts=5.6.0-dev.20240818&ssl=140&ssc=43&pln=140&pc=61&noLib=true&filetype=ts#
💻 Code
🙁 Actual behavior
Mouse over the
valid
to displayvalid: (value: string) => void
Mouse over the
value
to displayParameter 'value' implicitly has an 'any' type.
🙂 Expected behavior
value type is string not any
Additional information about the issue
No response
The text was updated successfully, but these errors were encountered: