In Typescript is there a way to restrict / limit an exported function so it can only be imported by certain files?

后端 未结 0 552
遇见更好的自我
遇见更好的自我 2021-01-04 12:22

I want developers to use a class / interface instead of importing functions directly.

Is there a way to limit so only the class can import the function?

I don\

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