Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 4 additions & 5 deletions src/cli/type-resolution.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@ import type {
Project,
TypeAliasDeclaration,
} from 'ts-morph';
import {StructureKind} from 'ts-morph';
import {TypeFormatFlags} from 'typescript';
import {StructureKind, ts} from 'ts-morph';

export interface CustomTypeRequest {
tableName: string;
Expand All @@ -28,9 +27,9 @@ const RESOLVER_FILE_NAME = '__drizzle_zero_type_resolver.ts';
type ResolverImport = Omit<ImportDeclarationStructure, 'kind'>;

const typeFormatFlags =
TypeFormatFlags.UseAliasDefinedOutsideCurrentScope |
TypeFormatFlags.NoTruncation |
TypeFormatFlags.WriteArrowStyleSignature;
ts.TypeFormatFlags.UseAliasDefinedOutsideCurrentScope |
ts.TypeFormatFlags.NoTruncation |
ts.TypeFormatFlags.WriteArrowStyleSignature;

export function resolveCustomTypes({
project,
Expand Down