v21’s avatarv21’s Twitter Archive—№ 54,629

    1. …in reply to @mcclure111
      @mcclure111 @chrisamaphone @aeleitch i think prepending "export default" to a JSON file would be enough to turn it into a Typescript module... but honestly i'm not sure there's that much benefit to doing it then rather than when the code is loaded/tests are run etc?
  1. …in reply to @v21
    @mcclure111 @chrisamaphone @aeleitch i mean, actually it comes down to workflow - do you recompile to update data files, or run a script, or just replace them and run tests? depends on how tied the cadence is of editing data files versus modifying code.