Update to Prettier 2 and use ES Private Fields (#4498)

This commit is contained in:
Kitson Kelly 2020-03-29 04:03:49 +11:00 committed by GitHub
parent 1397b8e0e7
commit bced52505f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
329 changed files with 2787 additions and 2430 deletions

View file

@ -38,7 +38,7 @@ declare namespace Deno {
enum TestStatus {
Passed = "passed",
Failed = "failed",
Ignored = "ignored"
Ignored = "ignored",
}
interface TestResult {
@ -60,7 +60,7 @@ declare namespace Deno {
Start = "start",
TestStart = "testStart",
TestEnd = "testEnd",
End = "end"
End = "end",
}
interface TestEventStart {
@ -402,7 +402,7 @@ declare namespace Deno {
export enum SeekMode {
SEEK_START = 0,
SEEK_CURRENT = 1,
SEEK_END = 2
SEEK_END = 2,
}
/** **UNSTABLE**: might make `Reader` into iterator of some sort. */
@ -766,12 +766,6 @@ declare namespace Deno {
*
* Based on [Go Buffer](https://golang.org/pkg/bytes/#Buffer). */
export class Buffer implements Reader, SyncReader, Writer, SyncWriter {
private buf;
private off;
private _tryGrowByReslice;
private _reslice;
private _grow;
constructor(ab?: ArrayBuffer);
/** Returns a slice holding the unread portion of the buffer.
*
@ -1603,7 +1597,7 @@ declare namespace Deno {
export enum ShutdownMode {
Read = 0,
Write,
ReadWrite // TODO(ry) panics on ReadWrite.
ReadWrite, // TODO(ry) panics on ReadWrite.
}
/** **UNSTABLE**: Maybe should remove `how` parameter maybe remove
@ -1998,7 +1992,7 @@ declare namespace Deno {
SIGWINCH = 28,
SIGIO = 29,
SIGPWR = 30,
SIGSYS = 31
SIGSYS = 31,
}
enum MacOSSignal {
SIGHUP = 1,
@ -2031,7 +2025,7 @@ declare namespace Deno {
SIGWINCH = 28,
SIGINFO = 29,
SIGUSR1 = 30,
SIGUSR2 = 31
SIGUSR2 = 31,
}
/** **UNSTABLE**: make platform independent.
@ -2108,7 +2102,7 @@ declare namespace Deno {
Info = 2,
Error = 3,
Warning = 4,
Suggestion = 5
Suggestion = 5,
}
export interface DiagnosticMessageChain {