Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
466 changes: 404 additions & 62 deletions lib/_tsc.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions lib/lib.dom.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30285,6 +30285,7 @@ declare var ReadableStream: {
new(underlyingSource: UnderlyingByteSource, strategy?: { highWaterMark?: number }): ReadableStream<Uint8Array<ArrayBuffer>>;
new<R = any>(underlyingSource: UnderlyingDefaultSource<R>, strategy?: QueuingStrategy<R>): ReadableStream<R>;
new<R = any>(underlyingSource?: UnderlyingSource<R>, strategy?: QueuingStrategy<R>): ReadableStream<R>;
from<R>(asyncIterable: AsyncIterable<R> | Iterable<R | PromiseLike<R>>): ReadableStream<R>;
};

/**
Expand Down
2 changes: 1 addition & 1 deletion lib/lib.es2020.intl.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,7 @@ declare namespace Intl {
}

interface DateTimeFormatOptions {
calendar?: string | undefined;
calendar?: string | (typeof globalThis extends { Temporal: { CalendarProtocol: infer T; }; } ? T : undefined) | undefined;
dayPeriod?: "narrow" | "short" | "long" | undefined;
numberingSystem?: string | undefined;

Expand Down
2 changes: 1 addition & 1 deletion lib/lib.es5.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4522,7 +4522,7 @@ declare namespace Intl {
timeZoneName?: "short" | "long" | "shortOffset" | "longOffset" | "shortGeneric" | "longGeneric" | undefined;
formatMatcher?: "best fit" | "basic" | undefined;
hour12?: boolean | undefined;
timeZone?: string | undefined;
timeZone?: string | (typeof globalThis extends { Temporal: { TimeZoneProtocol: infer T; }; } ? T : undefined) | undefined;
}

interface ResolvedDateTimeFormatOptions {
Expand Down
1 change: 1 addition & 0 deletions lib/lib.webworker.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9211,6 +9211,7 @@ declare var ReadableStream: {
new(underlyingSource: UnderlyingByteSource, strategy?: { highWaterMark?: number }): ReadableStream<Uint8Array<ArrayBuffer>>;
new<R = any>(underlyingSource: UnderlyingDefaultSource<R>, strategy?: QueuingStrategy<R>): ReadableStream<R>;
new<R = any>(underlyingSource?: UnderlyingSource<R>, strategy?: QueuingStrategy<R>): ReadableStream<R>;
from<R>(asyncIterable: AsyncIterable<R> | Iterable<R | PromiseLike<R>>): ReadableStream<R>;
};

/**
Expand Down
64 changes: 63 additions & 1 deletion lib/typescript.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3642,6 +3642,40 @@ declare namespace ts {
responseRequired?: boolean;
}
}
namespace deno {
function setEnterSpan(f: EnterSpan): void;
function setExitSpan(f: ExitSpan): void;
function spanned<T>(name: string, f: () => T): T;
function setIsNodeSourceFileCallback(callback: IsNodeSourceFileCallback): void;
function setNodeBuiltInModuleNames(names: readonly string[]): void;
function setNodeOnlyGlobalNames(names: readonly string[]): void;
function setTypesNodeIgnorableNames(names: Set<string>): void;
function createDenoForkContext({ mergeSymbol, globals, nodeGlobals, ambientModuleSymbolRegex }: {
mergeSymbol(target: ts.Symbol, source: ts.Symbol, unidirectional?: boolean): ts.Symbol;
globals: ts.SymbolTable;
nodeGlobals: ts.SymbolTable;
ambientModuleSymbolRegex: RegExp;
}): DenoForkContext;
function isTypesNodePkgPath(path: ts.Path): boolean;
function tryParseNpmPackageReference(text: string): NpmPackageReference | undefined;
function parseNpmPackageReference(text: string): NpmPackageReference;
type IsNodeSourceFileCallback = (sourceFile: ts.SourceFile) => boolean;
type EnterSpan = (name: string) => object;
type ExitSpan = (span: object) => void;
let enterSpan: EnterSpan;
let exitSpan: ExitSpan;
interface DenoForkContext {
hasNodeSourceFile: (node: ts.Node | undefined) => boolean;
getGlobalsForName: (id: ts.__String) => ts.SymbolTable;
mergeGlobalSymbolTable: (node: ts.Node, source: ts.SymbolTable, unidirectional?: boolean) => void;
combinedGlobals: ts.SymbolTable;
}
interface NpmPackageReference {
name: string;
versionReq: string | undefined;
subPath: string | undefined;
}
}
namespace JsTyping {
interface TypingResolutionHost {
directoryExists(path: string): boolean;
Expand Down Expand Up @@ -6282,7 +6316,7 @@ declare namespace ts {
getExportsOfModule(moduleSymbol: Symbol): Symbol[];
getJsxIntrinsicTagNamesAt(location: Node): Symbol[];
isOptionalParameter(node: ParameterDeclaration): boolean;
getAmbientModules(): Symbol[];
getAmbientModules(sourceFile?: SourceFile): Symbol[];
tryGetMemberInModuleExports(memberName: string, moduleSymbol: Symbol): Symbol | undefined;
getApparentType(type: Type): Type;
getBaseConstraintOfType(type: Type): Type | undefined;
Expand Down Expand Up @@ -11307,6 +11341,34 @@ declare namespace ts {
span: TextSpan;
preferences: UserPreferences;
}
enum ExportKind {
Named = 0,
Default = 1,
ExportEquals = 2,
UMD = 3,
Module = 4,
}
interface SymbolExportInfo {
readonly symbol: Symbol;
readonly moduleSymbol: Symbol;
/** Set if `moduleSymbol` is an external module, not an ambient module */
moduleFileName: string | undefined;
exportKind: ExportKind;
targetFlags: SymbolFlags;
/** True if export was only found via the package.json AutoImportProvider (for telemetry). */
isFromPackageJson: boolean;
}
interface ExportInfoMap {
isUsableByFile(importingFile: Path): boolean;
clear(): void;
add(importingFile: Path, symbol: Symbol, key: __String, moduleSymbol: Symbol, moduleFile: SourceFile | undefined, exportKind: ExportKind, isFromPackageJson: boolean, checker: TypeChecker): void;
get(importingFile: Path, key: ExportMapInfoKey): readonly SymbolExportInfo[] | undefined;
search<T>(importingFile: Path, preferCapitalized: boolean, matches: (name: string, targetFlags: SymbolFlags) => boolean, action: (info: readonly SymbolExportInfo[], symbolName: string, isFromAmbientModule: boolean, key: ExportMapInfoKey) => T | undefined): T | undefined;
releaseSymbols(): void;
isEmpty(): boolean;
/** @returns Whether the change resulted in the cache being cleared */
onFileChanged(oldSourceFile: SourceFile, newSourceFile: SourceFile, typeAcquisitionEnabled: boolean): boolean;
}
type ExportMapInfoKey = string & {
__exportInfoKey: void;
};
Expand Down
Loading