9dd1ae3428
Our coding standards are to create a separate file for classes and interfaces, but this is a bit different: this "interface" is more like a struct, and it's used to define the return type of a method of this class. Since it's inherently coupled, I'm keeping it in the same file. The idea is that the caller will provide its own abstraction rather than continuing to export this one. Note that Typescript does support re-exporting symbols if need be. * src/server/daemon/controller.js: Adjust import of TokenDao (TS compiles default modules as `default'). * src/server/service/TokenedService.js: Adjust import of TokenDao. * src/server/token/TokenDao.ts: Export TokenDao as `default'. Export TokenData. * test/server/token/TokenDaoTest.ts: Adjust import of TokenDao. Import TokenData. |
||
---|---|---|
.. | ||
db | ||
meta | ||
quote | ||
request | ||
service | ||
token |