You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Expected behavior:
I would expect the settings argument in render method of the "GreetingComponent" to have an inferred type of HelloSettings but currently that argument is inferred as any.
Actual behavior:
The settings argument in the render method of the "GreetingComponent" has an inferred type of any.
TypeScript Version: 4.0.5
Search Terms:
Class that implements an interface does not get type inference on method arguments.
Code
Expected behavior:
I would expect the
settings
argument in render method of the "GreetingComponent" to have an inferred type ofHelloSettings
but currently that argument is inferred asany
.Actual behavior:
The
settings
argument in the render method of the "GreetingComponent" has an inferred type ofany
.Playground Link:
https://www.typescriptlang.org/play?#code/JYOwLgpgTgZghgYwgAgMIHsC2AHdILgA8AggHzIDeAUMslAQCbQAUAzhGGKAOasBcyYgEoBrMFB4BuKgF8qVMAE9sKABIQANhvQBlDlxC9kAXko1k3ehx6jxU2dKoINcVq2QBxKwe4YceAjBkYBwNCExA9z9cfCJ1LV19HlZyalp6ECYoNiTDViEzWnSOAFcoEGR2TmSAOksIa0NpWjkZIA
Related Issues:
The text was updated successfully, but these errors were encountered: