max-mapper / yo-yo

A tiny library for building modular UI components using DOM diffing and ES6 tagged template literals

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Typescript typings

maxfridbe opened this issue · comments

I have limited typing which you may want to enhance and publish

 declare module "yo-yo"{
    interface yo_yo{
      (strings:string[],...values:any[]):HTMLElement;
      update(element:HTMLElement,element2:HTMLElement);
    }
    var yo:yo_yo;
    export =  yo;
}

declare module "dom-css"{
   interface dom_css{
     (element:HTMLElement, css:any):void;
   }

   var css:dom_css;
   export = css;
 }