Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- export interface ITooltip {
- new(elem: HTMLElement, options?: ITooltipOptions);
- show(): void;
- hide(): void;
- toggle(): void;
- }
- export class Tooltip implements ITooltip {
- constructor(private elem: HTMLElement, private options?: ITooltipOptions) {
- }
- ....
- }
- Class 'Tooltip' incorrectly implements interface 'ITooltip'.
- Type 'Tooltip' provides no match for the signature 'new (elem: HTMLElement, options?: ITooltipOptions): any'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement