Issue
Im trying to build a form and start by defining an interface
interface
TokenListProps
{
readonly
contractAddress: string;
}
and I get a compile error 'Expected an assignment or function call and instead saw an expression' for this line.
Any suggestions on why this might be?
Solution
Based upon the info you have provided the issue is the newlines in your definitions.
You currently have this:
interface
TokenListProps
{
readonly
contractAddress: string;
}
And it should be like this:
interface TokenListProps
{
readonly contractAddress: string;
}
Answered By - FutureCake
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.