state = {
x: Array<any>(),
y: number
}
y gives me the following error:
only refers to a type but is being used as a value here.
which is understandable because it is object's property.
How can I use specify a type for this like the x one?
yany value (xis an array). You sure you want to do this? Or are you trying to define an interface/type? - Oscar Paz