举个例子:
// node_modules/@types/jest/index.d.ts
declare const expect = () => { toBe: Function }
// index.test.ts
expect().toBe()
现在我希望扩充一个方法 expect().toWarnDev()
,应该怎么做?
举个例子:
// node_modules/@types/jest/index.d.ts
declare const expect = () => { toBe: Function }
// index.test.ts
expect().toBe()
现在我希望扩充一个方法 expect().toWarnDev()
,应该怎么做?