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
Post a Comment