-
-
Notifications
You must be signed in to change notification settings - Fork 45
Open
Description
Bug report
obsidian library has type Plugin
HTML DOM API also has deprecated type Plugin
It seems dts-bundle-generator trying to avoid confusion between those two Plugin types replaces the one we use with Plugin$1, but this makes the augmentation incorrect, because there aliases are not supported
Input code
import { Plugin } from 'obsidian';
export interface Plugin2 extends Plugin {}
declare module 'obsidian' {
interface Plugin {
someProperty: string;
}
}Expected output
// Generated by dts-bundle-generator v9.5.1
import { Plugin } from 'obsidian';
export interface Plugin2 extends Plugin {
}
declare module "obsidian" {
interface Plugin {
someProperty: string;
}
}
export {};Actual output
// Generated by dts-bundle-generator v9.5.1
import { Plugin as Plugin$1 } from 'obsidian';
export interface Plugin2 extends Plugin$1 {
}
declare module "obsidian" {
interface Plugin$1 {
someProperty: string;
}
}
export {};Additional context
Add any other context about the problem here (CLI options, etc)
unxok, nfriedly and SimonSiefke
Metadata
Metadata
Assignees
Labels
No labels