Skip to content

Commit b67eb49

Browse files
committed
(chore) import type, add copyright headers
1 parent 8c155d3 commit b67eb49

File tree

4 files changed

+10
-3
lines changed

4 files changed

+10
-3
lines changed

heft-plugins/heft-typescript-plugin/src/TranspilerWorker.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
1+
// Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT license.
2+
// See LICENSE in the project root for license information.
13
import { parentPort, workerData } from 'node:worker_threads';
24

3-
import * as TTypescript from 'typescript';
5+
import type * as TTypescript from 'typescript';
46
import type {
57
ITranspilationErrorMessage,
68
ITranspilationRequestMessage,

heft-plugins/heft-typescript-plugin/src/TypeScriptBuilder.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,10 @@
33

44
import * as crypto from 'crypto';
55
import * as path from 'path';
6+
import { Worker } from 'worker_threads';
7+
68
import * as semver from 'semver';
7-
import * as TTypescript from 'typescript';
9+
import type * as TTypescript from 'typescript';
810
import {
911
type ITerminal,
1012
JsonFile,
@@ -26,7 +28,6 @@ import type {
2628
ITypescriptWorkerData
2729
} from './types';
2830
import { configureProgramForMultiEmit } from './configureProgramForMultiEmit';
29-
import { Worker } from 'worker_threads';
3031

3132
export interface ITypeScriptBuilderConfiguration extends ITypeScriptConfigurationJson {
3233
/**

heft-plugins/heft-typescript-plugin/src/configureProgramForMultiEmit.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT license.
2+
// See LICENSE in the project root for license information.
13
import type * as TTypescript from 'typescript';
24
import { InternalError } from '@rushstack/node-core-library';
35

heft-plugins/heft-typescript-plugin/src/types.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT license.
2+
// See LICENSE in the project root for license information.
13
import type * as TTypescript from 'typescript';
24

35
export interface ITypescriptWorkerData {

0 commit comments

Comments
 (0)