Skip to content

Commit abc8618

Browse files
committed
Fix typo
1 parent 1b37830 commit abc8618

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/compiler/core.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1391,7 +1391,7 @@ namespace ts {
13911391
return result;
13921392
}
13931393

1394-
export function copyProperities<T1 extends T2, T2>(first: T1, second: T2) {
1394+
export function copyProperties<T1 extends T2, T2>(first: T1, second: T2) {
13951395
for (const id in second) {
13961396
if (hasOwnProperty.call(second, id)) {
13971397
(first as any)[id] = second[id];

src/compiler/tsbuild.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -393,7 +393,7 @@ namespace ts {
393393
export function createSolutionBuilderWithWatchHost<T extends BuilderProgram = SemanticDiagnosticsBuilderProgram>(system = sys, createProgram?: CreateProgram<T>, reportDiagnostic?: DiagnosticReporter, reportSolutionBuilderStatus?: DiagnosticReporter, reportWatchStatus?: WatchStatusReporter) {
394394
const host = createSolutionBuilderHostBase(system, createProgram || createEmitAndSemanticDiagnosticsBuilderProgram as any as CreateProgram<T>, reportDiagnostic, reportSolutionBuilderStatus) as SolutionBuilderWithWatchHost<T>;
395395
const watchHost = createWatchHost(system, reportWatchStatus);
396-
copyProperities(host, watchHost);
396+
copyProperties(host, watchHost);
397397
return host;
398398
}
399399

src/compiler/watch.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -317,7 +317,7 @@ namespace ts {
317317
function createWatchCompilerHost<T extends BuilderProgram = EmitAndSemanticDiagnosticsBuilderProgram>(system = sys, createProgram: CreateProgram<T> | undefined, reportDiagnostic: DiagnosticReporter, reportWatchStatus?: WatchStatusReporter): WatchCompilerHost<T> {
318318
const writeFileName = (s: string) => system.write(s + system.newLine);
319319
const result = createProgramHost(system, createProgram || createEmitAndSemanticDiagnosticsBuilderProgram as any as CreateProgram<T>) as WatchCompilerHost<T>;
320-
copyProperities(result, createWatchHost(system, reportWatchStatus));
320+
copyProperties(result, createWatchHost(system, reportWatchStatus));
321321
result.afterProgramCreate = builderProgram => {
322322
const compilerOptions = builderProgram.getCompilerOptions();
323323
const newLine = getNewLineCharacter(compilerOptions, () => system.newLine);

0 commit comments

Comments
 (0)