Skip to content

TS2691 when compiling type reference from version 7.1.1 #1166

@scarrico-divergent

Description

@scarrico-divergent

I have a library that uses type references from minio ie

import type { Client as MinioClient, ItemBucketMetadata, ResultCallback, UploadedObjectInfo } from "minio";

since recent upgrade to the latest release, it has started producing

node_modules/minio/dist/main/minio.d.ts:20:29 - error TS2691: An import path cannot end with a '.ts' extension. Consider importing './internal/s3-endpoints' instead.

20 export type { Region } from './internal/s3-endpoints.ts'

would it be possible to remove the .ts extension from the definition file?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions