Last active
January 18, 2020 01:06
-
-
Save aleph-naught2tog/f1fba56911a2c91b5582910c0eed0a59 to your computer and use it in GitHub Desktop.
Generate a list of the probably @types packages for missing type files
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
`tsc | grep 'TS7016'`.split("\n").map(&:strip).map { |str| /('|"").+?(?=\1)/.match(str) }.map { |reg| reg[0].gsub(/'|"/, '') }.uniq.map { |str| "yarn add @types/#{str};" }.join("\n") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment