How to use an ambient declaration to make a type stricter?

后端 未结 0 1394
长情又很酷
长情又很酷 2021-01-15 05:04

Suppose I have am using a package that has this type file:

lib.foobar.d.ts

declare function foobar(foo: string): void;

No

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