Skip to content

Commit 9610bc2

Browse files
committed
Merge #13: feat: [#12] add comment field to torrent api responses
3e43e73 feat: [#12] add comment field to torrent api responses (MMelchor) Pull request description: Resolves #12. Top commit has no ACKs. Tree-SHA512: f2cdf6ef035bc20c2c7d9ac27d4321c17e7d5597b13e686ebbaa210529fcfd5065b07d03a3fd01f8078f68d4c9324a0e5aecb3e60f757f0a75c92f51e4751ee0
2 parents ac763db + 3e43e73 commit 9610bc2

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "torrust-index-types-lib",
3-
"version": "1.0.0-alpha.1",
3+
"version": "1.0.0-alpha.2",
44
"description": "Contains common types for the Torrust project.",
55
"repository": "https://github.com/torrust/torrust-index-types-lib",
66
"license" : "SEE LICENSE IN COPYRIGHT",

src/types/torrent.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ export type TorrentResponse = {
1717
magnet_link: string
1818
tags: Array<TorrentTag>
1919
name: string
20+
comment: string | null
2021
}
2122

2223
export type TorrentListing = {
@@ -31,6 +32,7 @@ export type TorrentListing = {
3132
leechers: number
3233
seeders: number
3334
name: string
35+
comment: string | null
3436
}
3537

3638
export type TorrentFile = {

0 commit comments

Comments
 (0)