Kotlin / dukat

Converter of <any kind of declarations> to Kotlin external declarations
554 stars 42 forks source link

Dukat ignores d.mts files #520

Open BernhardPosselt opened 6 months ago

BernhardPosselt commented 6 months ago

I'm trying to compile types for a project which provides types for native esmodules.

🕗 Version

0.5.8-rc.4

💻 Code or Package Name

Put the following code into a file called d.mts

export function logCompatibilityWarning(message: string, { mode, since, until, details, stack, once }?: {
    mode?: number;
    since?: number | string;
    until?: number | string;
    details?: string;
    stack?: boolean;
    once?: boolean;
}): void;

Compile it with ducat and there is no output. Rename it to d.ts instead and it'll generate the proper type definitions