Skip to content

Commit 52e160a

Browse files
committed
refactor: use namespace import to import "typescript"
1 parent 2c3814d commit 52e160a

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

44 files changed

+44
-44
lines changed

src/comments.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import ts from "typescript";
1+
import * as ts from "typescript";
22
import { describe, expect, it, vitest } from "vitest";
33

44
import { forEachComment } from "./comments";

src/comments.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// Code largely based on https://github.com/ajafff/tsutils
22
// Original license: https://github.com/ajafff/tsutils/blob/26b195358ec36d59f00333115aa3ffd9611ca78b/LICENSE
33

4-
import ts from "typescript";
4+
import * as ts from "typescript";
55

66
import { forEachToken } from "./tokens";
77

src/compilerOptions.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// Code largely based on https://github.com/ajafff/tsutils
22
// Original license: https://github.com/ajafff/tsutils/blob/26b195358ec36d59f00333115aa3ffd9611ca78b/LICENSE
33

4-
import ts from "typescript";
4+
import * as ts from "typescript";
55
import { describe, expect, it } from "vitest";
66

77
import {

src/compilerOptions.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// Code largely based on https://github.com/ajafff/tsutils
22
// Original license: https://github.com/ajafff/tsutils/blob/26b195358ec36d59f00333115aa3ffd9611ca78b/LICENSE
33

4-
import ts from "typescript";
4+
import * as ts from "typescript";
55

66
/**
77
* An option that can be tested with {@link isCompilerOptionEnabled}.

src/flags.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// Code largely based on https://github.com/ajafff/tsutils
22
// Original license: https://github.com/ajafff/tsutils/blob/26b195358ec36d59f00333115aa3ffd9611ca78b/LICENSE
33

4-
import ts from "typescript";
4+
import * as ts from "typescript";
55

66
/**
77
* Test if the given flag is set on the combined flags.

src/modifiers.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// Code largely based on https://github.com/ajafff/tsutils
22
// Original license: https://github.com/ajafff/tsutils/blob/26b195358ec36d59f00333115aa3ffd9611ca78b/LICENSE
33

4-
import ts from "typescript";
4+
import * as ts from "typescript";
55

66
/**
77
* Test if the given iterable includes a modifier of any of the given kinds.

src/nodes/access.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import ts from "typescript";
1+
import * as ts from "typescript";
22
import { describe, expect, it } from "vitest";
33

44
import { createNode } from "../test/utils";

src/nodes/access.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// Code largely based on https://github.com/ajafff/tsutils
22
// Original license: https://github.com/ajafff/tsutils/blob/26b195358ec36d59f00333115aa3ffd9611ca78b/LICENSE
33

4-
import ts from "typescript";
4+
import * as ts from "typescript";
55

66
import { isAssignmentKind } from "../syntax";
77

src/nodes/typeGuards/compound.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import ts from "typescript";
1+
import * as ts from "typescript";
22
import { describe, expect, it } from "vitest";
33

44
import { createNode } from "../../test/utils";

src/nodes/typeGuards/compound.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import ts from "typescript";
1+
import * as ts from "typescript";
22

33
import { isSuperExpression } from "./single";
44
import {

0 commit comments

Comments
 (0)