angular - Function tools library in typescript -


what ts style way implement library of tool functions such unit conversions? have them in js file, make ts compliant possible. seems having provider bit overkill. or go class of new tools().feettoinch() , or static member functions?

you don't need write class ts compliant. add .d.ts file definitions of wrote in javascript using typescript advantage of type definitions.


Comments

Popular posts from this blog

python - Alternative to referencing variable before assignment -

vb.net - How to ignore if a cell is empty nothing -

Sort a complex associative array in PHP -