mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-02-27 15:11:05 -06:00
Fix implicit dependencies on es6 lib exposed by node changes
This commit is contained in:
parent
4940ff8eb3
commit
5144330c98
@ -687,7 +687,7 @@ namespace ts {
|
||||
(filesWithInvalidatedResolutions || (filesWithInvalidatedResolutions = createMap<true>())).set(containingFilePath, true);
|
||||
|
||||
// When its a file with inferred types resolution, invalidate type reference directive resolution
|
||||
if (containingFilePath.endsWith(inferredTypesContainingFile)) {
|
||||
if (endsWith(containingFilePath, inferredTypesContainingFile)) {
|
||||
resolutionHost.onChangedAutomaticTypeDirectiveNames();
|
||||
}
|
||||
}
|
||||
|
||||
@ -2444,7 +2444,7 @@ namespace ts {
|
||||
return String.fromCharCode(codeUnit1, codeUnit2);
|
||||
}
|
||||
|
||||
const utf16EncodeAsStringWorker: (codePoint: number) => string = (String as any).fromCodePoint ? codePoint => String.fromCodePoint(codePoint) : utf16EncodeAsStringFallback;
|
||||
const utf16EncodeAsStringWorker: (codePoint: number) => string = (String as any).fromCodePoint ? codePoint => (String as any).fromCodePoint(codePoint) : utf16EncodeAsStringFallback;
|
||||
|
||||
/* @internal */
|
||||
export function utf16EncodeAsString(codePoint: number) {
|
||||
|
||||
@ -1004,14 +1004,14 @@ namespace ts {
|
||||
writeFloatBE(value: number, offset: number): number;
|
||||
writeDoubleLE(value: number, offset: number): number;
|
||||
writeDoubleBE(value: number, offset: number): number;
|
||||
readBigUInt64BE(offset?: number): bigint;
|
||||
readBigUInt64LE(offset?: number): bigint;
|
||||
readBigInt64BE(offset?: number): bigint;
|
||||
readBigInt64LE(offset?: number): bigint;
|
||||
writeBigInt64BE(value: bigint, offset?: number): number;
|
||||
writeBigInt64LE(value: bigint, offset?: number): number;
|
||||
writeBigUInt64BE(value: bigint, offset?: number): number;
|
||||
writeBigUInt64LE(value: bigint, offset?: number): number;
|
||||
readBigUInt64BE?(offset?: number): bigint;
|
||||
readBigUInt64LE?(offset?: number): bigint;
|
||||
readBigInt64BE?(offset?: number): bigint;
|
||||
readBigInt64LE?(offset?: number): bigint;
|
||||
writeBigInt64BE?(value: bigint, offset?: number): number;
|
||||
writeBigInt64LE?(value: bigint, offset?: number): number;
|
||||
writeBigUInt64BE?(value: bigint, offset?: number): number;
|
||||
writeBigUInt64LE?(value: bigint, offset?: number): number;
|
||||
fill(value: string | Uint8Array | number, offset?: number, end?: number, encoding?: BufferEncoding): this;
|
||||
indexOf(value: string | number | Uint8Array, byteOffset?: number, encoding?: BufferEncoding): number;
|
||||
lastIndexOf(value: string | number | Uint8Array, byteOffset?: number, encoding?: BufferEncoding): number;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user