array-type: [ default: array, generic: array ]

This commit is contained in:
Alexander
2019-08-08 21:30:18 +03:00
parent c7834c54d8
commit ceccfd8867
141 changed files with 1620 additions and 1620 deletions

View File

@@ -5,7 +5,7 @@ namespace ts.JsTyping {
directoryExists(path: string): boolean;
fileExists(fileName: string): boolean;
readFile(path: string, encoding?: string): string | undefined;
readDirectory(rootDir: string, extensions: ReadonlyArray<string>, excludes: ReadonlyArray<string> | undefined, includes: ReadonlyArray<string> | undefined, depth?: number): string[];
readDirectory(rootDir: string, extensions: readonly string[], excludes: readonly string[] | undefined, includes: readonly string[] | undefined, depth?: number): string[];
}
interface PackageJson {
@@ -29,7 +29,7 @@ namespace ts.JsTyping {
return availableVersion.compareTo(cachedTyping.version) <= 0;
}
export const nodeCoreModuleList: ReadonlyArray<string> = [
export const nodeCoreModuleList: readonly string[] = [
"assert",
"async_hooks",
"buffer",
@@ -109,7 +109,7 @@ namespace ts.JsTyping {
safeList: SafeList,
packageNameToTypingLocation: ReadonlyMap<CachedTyping>,
typeAcquisition: TypeAcquisition,
unresolvedImports: ReadonlyArray<string>,
unresolvedImports: readonly string[],
typesRegistry: ReadonlyMap<MapLike<string>>):
{ cachedTypingPaths: string[], newTypingNames: string[], filesToWatch: string[] } {
@@ -192,7 +192,7 @@ namespace ts.JsTyping {
inferredTypings.set(typingName, undefined!); // TODO: GH#18217
}
}
function addInferredTypings(typingNames: ReadonlyArray<string>, message: string) {
function addInferredTypings(typingNames: readonly string[], message: string) {
if (log) log(`${message}: ${JSON.stringify(typingNames)}`);
forEach(typingNames, addInferredTyping);
}

View File

@@ -72,7 +72,7 @@ declare namespace ts.server {
readonly kind: EventBeginInstallTypes | EventEndInstallTypes;
readonly eventId: number;
readonly typingsInstallerVersion: string;
readonly packagesToInstall: ReadonlyArray<string>;
readonly packagesToInstall: readonly string[];
}
export interface BeginInstallTypes extends InstallTypes {