refactor: replace a few any-s with proper types (#25681)
This commit is contained in:
parent
603f9242d9
commit
fb11a12d5b
19 changed files with 170 additions and 53 deletions
|
@ -124,8 +124,7 @@ describe('deprecate', () => {
|
|||
deprecate.setHandler(m => { msg = m; });
|
||||
|
||||
function oldFn () { return 'hello'; }
|
||||
function newFn () { return 'goodbye'; }
|
||||
const deprecatedFn = deprecate.renameFunction(oldFn, newFn);
|
||||
const deprecatedFn = deprecate.renameFunction(oldFn, 'newFn');
|
||||
deprecatedFn();
|
||||
|
||||
expect(msg).to.be.a('string');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue