hunk.code_window: declare module 'write-json-file' {
     const anything: any;
     export = anything;
   }
   declare module 'mem' {
     const anything: any;
     export = anything;
   }
  
hunk.labels: keep keep keep keep add keep keep keep keep
hunk.after_edit: declare module 'write-file-atomic' {
     const anything: any;
     export = anything;
   }
  
hunk.file_path: typings/local.d.ts
hunk.type: add
file: import dirsum = require('@zkochan/dirsum')
  
  export default function (dirpath: string): Promise<string> {
    return new Promise((resolve, reject) => {
      dirsum.digest(dirpath, 'sha1', (err: Error, hashes: {hash: string}) => {
        if (err) return reject(err)
        resolve(hashes.hash)
      })
    })
  }
  