[英]Expected an assignment or function call and instead saw an expression when defining interface
我試圖構建一個表單並從定義一個接口開始
interface TokenListProps { readonly contractAddress: string; }
並且我收到此行的編譯錯誤“預期分配或函數調用,而是看到了一個表達式”。
關於為什么會這樣的任何建議?
根據您提供的信息,問題是您定義中的換行符。
你目前有這個:
interface
TokenListProps
{
readonly
contractAddress: string;
}
它應該是這樣的:
interface TokenListProps
{
readonly contractAddress: string;
}
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.