Skip to content

Commit 93e28e6

Browse files
committed
refactor: use namespace import to import "typescript"
1 parent 39e06e3 commit 93e28e6

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
-45
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
/* eslint-disable jsdoc/informative-docs */
77
/**

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 node has the given `ModifierFlags` set.

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)