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

resizing Telegram inline keyboard -

command line - How can a Python program background itself? -

php - "cURL error 28: Resolving timed out" on Wordpress on Azure App Service on Linux -