Circular dependency caused by importing typescript type

前端 未结 4 568
借酒劲吻你
借酒劲吻你 2020-12-20 23:40

I\'m modeling data in typescript sent from a server to my Angular app. An Opportunity has a forms property containing an array of Form[]

4条回答
  •  时光取名叫无心
    2020-12-21 00:22

    from typescript version 3.8

    import type would help you.

    https://www.typescriptlang.org/docs/handbook/release-notes/typescript-3-8.html

提交回复
热议问题