Advertisement
Guest User

Untitled

a guest
Jun 27th, 2016
54
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.45 KB | None | 0 0
  1. export interface ITooltip {
  2. new(elem: HTMLElement, options?: ITooltipOptions);
  3. show(): void;
  4. hide(): void;
  5. toggle(): void;
  6. }
  7.  
  8. export class Tooltip implements ITooltip {
  9.  
  10. constructor(private elem: HTMLElement, private options?: ITooltipOptions) {
  11. }
  12.  
  13. ....
  14. }
  15.  
  16. Class 'Tooltip' incorrectly implements interface 'ITooltip'.
  17. Type 'Tooltip' provides no match for the signature 'new (elem: HTMLElement, options?: ITooltipOptions): any'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement