Open GustavoNazarioPerez opened 7 months ago
Changes Missing Coverage | Covered Lines | Changed/Added Lines | % | ||
---|---|---|---|---|---|
src/posts/summary.js | 61 | 63 | 96.83% | ||
<!-- | Total: | 61 | 63 | 96.83% | --> |
Totals | |
---|---|
Change from base Build 7649102120: | 0.003% |
Covered Lines: | 22634 |
Relevant Lines: | 25362 |
These changes are a part of NodeBB's migration to TypeScript, resolves #29.
I have translated the file
src/posts/summary.js
from JavaScript to TypeScript,src/posts/summary.js
now contains the compiled version ofsrc/posts/summary.ts
.Key Changes:
src/posts/summary.js
Post
,CategoryObject
,TopicObject
, andUserObjectSlim
. These objects were defined in thesrc/types
directory but I could not import them as it would cause formatting errors due to the different module syntax (ESLint vs. CommonJS).test/posts.js
unit tests by removing thedone
callback.Testing
npm run lint
npm run test