News for hackers. Stuff that matters.
Re:93% of Paint Splatters Are Valid Perl Programs by ambulancechaser on Thursday April 04, 2019 @06:10PM (#19577606)
Interesting. Similar to how typescript can be added with a rename from foo.js to foo.ts.
Re:93% of Paint Splatters Are Valid Perl Programs by folex on Thursday April 04, 2019 @06:36PM (#19577778)
even on something with dependencies? i.e., with a few requires or ES2016 imports?
Re:93% of Paint Splatters Are Valid Perl Programs by wolfgang42 on Thursday April 04, 2019 @07:20PM (#19578105)
Yes, if your tsconfig is sufficiently permissive it will simply give any imports for which it can't find a type definition the 'any' type and assume that you can do anything you like with them. Obviously this doesn't give you any help from the type checker but it will work fine and you can go back and add typings later when you decide you need them.