GetStaticProps with Typescript only working as arrow function, not as function declaration

前端 未结 0 759
醉梦人生
醉梦人生 2020-12-15 18:33

In the NextJs Docs for GetStaticProps it is written as a function declaration. If I try to make this typed, like this:

export async function getStaticProps():         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题