build: upgrade to TypeScript 2.7 (#22669)
Fixes: #21571 PR Close #22669
This commit is contained in:

committed by
Kara Erickson

parent
a225b48482
commit
8449eb8d62
@ -92,10 +92,12 @@ export class MockRequest extends MockBody implements Request {
|
||||
readonly referrer: string = '';
|
||||
readonly referrerPolicy: ReferrerPolicy = 'no-referrer';
|
||||
readonly type: RequestType = '';
|
||||
readonly signal: AbortSignal = null as any;
|
||||
|
||||
url: string;
|
||||
|
||||
constructor(input: string|Request, init: RequestInit = {}) {
|
||||
super(init !== undefined ? init.body || null : null);
|
||||
super(init !== undefined ? (init.body as(string | null)) || null : null);
|
||||
if (typeof input !== 'string') {
|
||||
throw 'Not implemented';
|
||||
}
|
||||
|
Reference in New Issue
Block a user