mirror of
https://github.com/status-im/sourcecred.git
synced 2025-01-12 21:54:37 +00:00
c616ec82fb
Summary: The `flow-typed` repository doesn’t have type definitions for `better-sqlite3`, so I wrote some. I figure that we can use them for a while, fix any problems that arise, and then PR them upstream. I started from [the TypeScript definitions][1], but made some improvements (like stronger typing for bound parameters), and also made some necessary changes due to differences between Flow and TypeScript. [1]: https://github.com/DefinitelyTyped/DefinitelyTyped/commits/master/types/better-sqlite3/index.d.ts Prettier does not format this file (it is in `flow-typed`), so I manually ran it through Prettier with the settings used by `flow-typed` itself. Test Plan: None. wchargin-branch: flow-better-sqlite3