ignore typescript ≥ 4.1 regression

Bug-Debian: https://bugs.debian.org/975794
Forwarded: no
Last-Update: 2021-10-27


Gbp-Pq: Name fix-typescript.patch
This commit is contained in:
Xavier Guimard 2023-02-17 11:10:56 +08:00 committed by zhouganqing
parent bf2eb4e71d
commit e4f463a723
2 changed files with 3 additions and 0 deletions

View File

@ -24,6 +24,7 @@ export default function promisify(fn: LegacyCallback): AgentCallbackPromise {
if (err) {
reject(err);
} else {
// @ts-ignore
resolve(rtn);
}
}

View File

@ -250,6 +250,7 @@ describe('Agent (TypeScript)', () => {
await req({ agent, ...info });
} catch (err) {
gotError = true;
// @ts-ignore
assert.equal(err.message, 'bad');
}
@ -277,6 +278,7 @@ describe('Agent (TypeScript)', () => {
await req({ agent, ...info });
} catch (err) {
gotError = true;
// @ts-ignore
assert.equal(err.message, 'bad');
}