Import files with extension

This commit is contained in:
Anton 2024-03-18 10:19:20 +01:00
parent bcea4b40bf
commit 83d9f1c8b9
1 changed files with 1 additions and 1 deletions

View File

@ -153,7 +153,7 @@ function getImportLine(dependency: Protobuf.Type | Protobuf.Enum | Protobuf.Serv
throw new Error('Invalid object passed to getImportLine');
}
}
return `import type { ${importedTypes} } from '${filePath}';`
return `import type { ${importedTypes} } from '${filePath}.ts';`
}
function getChildMessagesAndEnums(namespace: Protobuf.NamespaceBase): (Protobuf.Type | Protobuf.Enum)[] {