max-mapper / yo-yo

A tiny library for building modular UI components using DOM diffing and ES6 tagged template literals
1.33k stars 65 forks source link

Typescript typings #29

Open maxfridbe opened 8 years ago

maxfridbe commented 8 years ago

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;
 }