mirror of
https://github.com/denoland/deno.git
synced 2025-10-02 23:24:37 +00:00
Enable TS strict mode by default (#3899)
Fixes #3324 Co-authored-by: Kitson Kelly <me@kitsonkelly.com>
This commit is contained in:
parent
852823fa50
commit
90125566bb
56 changed files with 314 additions and 179 deletions
|
@ -67,7 +67,7 @@ export class TextProtoReader {
|
|||
*/
|
||||
async readMIMEHeader(): Promise<Headers | Deno.EOF> {
|
||||
const m = new Headers();
|
||||
let line: Uint8Array;
|
||||
let line: Uint8Array | undefined;
|
||||
|
||||
// The first line cannot start with a leading space.
|
||||
let buf = await this.r.peek(1);
|
||||
|
@ -135,7 +135,7 @@ export class TextProtoReader {
|
|||
|
||||
async readLineSlice(): Promise<Uint8Array | Deno.EOF> {
|
||||
// this.closeDot();
|
||||
let line: Uint8Array;
|
||||
let line: Uint8Array | undefined;
|
||||
while (true) {
|
||||
const r = await this.r.readLine();
|
||||
if (r === Deno.EOF) return Deno.EOF;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue