Skip to content

Commit 83b3b45

Browse files
committed
Ensure only types are imported
1 parent a27d0d5 commit 83b3b45

3 files changed

Lines changed: 6 additions & 6 deletions

File tree

lib/function.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
import { NullTreatment } from "./data-type";
1+
import type { NullTreatment } from "./data-type";
22
import type { Expr } from "./expr";
33
import type { Ident, ObjectName } from "./ident";
4-
import { OrderByExpr, Query } from "./statement";
5-
import { Value } from "./token";
4+
import type { OrderByExpr, Query } from "./statement";
5+
import type { Value } from "./token";
66

77
/**
88
* A function call

lib/statement.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
import { ColumnDef, ColumnOption, CommentDef, ConstraintCharacteristics, DataType, GeneratedAs, NullsDistinctOption, ReferentialAction, SequenceOptions, SqlOption } from "./data-type";
1+
import type { ColumnDef, ColumnOption, CommentDef, ConstraintCharacteristics, DataType, GeneratedAs, NullsDistinctOption, ReferentialAction, SequenceOptions, SqlOption } from "./data-type";
22
import type { Expr, ExprWithAlias, OneOrManyWithParens } from "./expr";
3-
import { FunctionArg, NamedWindowDefinition, SQLFunction } from "./function";
3+
import type { FunctionArg, NamedWindowDefinition, SQLFunction } from "./function";
44
import type { Ident, ObjectName, ObjectType } from "./ident";
55
import type { AttachedToken, Value, ValueWithSpan } from "./token";
66

lib/token.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { DataType } from "./data-type";
1+
import type { DataType } from "./data-type";
22
import type { Keyword } from "./keyword";
33
import type { Span } from "./span";
44

0 commit comments

Comments
 (0)