Skip to content

Commit 83d9f1c

Browse files
committed
Import files with extension
1 parent bcea4b4 commit 83d9f1c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/proto-loader/bin/proto-loader-gen-types.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ function getImportLine(dependency: Protobuf.Type | Protobuf.Enum | Protobuf.Serv
153153
throw new Error('Invalid object passed to getImportLine');
154154
}
155155
}
156-
return `import type { ${importedTypes} } from '${filePath}';`
156+
return `import type { ${importedTypes} } from '${filePath}.ts';`
157157
}
158158

159159
function getChildMessagesAndEnums(namespace: Protobuf.NamespaceBase): (Protobuf.Type | Protobuf.Enum)[] {

0 commit comments

Comments
 (0)