Skip to content

Commit

Permalink
Enable requests for TechRxiv preprint reviews
Browse files Browse the repository at this point in the history
  • Loading branch information
thewilkybarkid committed Feb 6, 2025
1 parent f1d8ea4 commit ffc9099
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions src/review-request.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ import type {
PsyarxivPreprintId,
ScieloPreprintId,
SocarxivPreprintId,
TechrxivPreprintId,
} from './types/preprint-id.js'

export type ReviewRequest = IncompleteReviewRequest | CompletedReviewRequest
Expand All @@ -41,6 +42,7 @@ export type ReviewRequestPreprintId =
| PsyarxivPreprintId
| ScieloPreprintId
| SocarxivPreprintId
| TechrxivPreprintId

export interface IncompleteReviewRequest {
readonly status: 'incomplete'
Expand Down Expand Up @@ -134,6 +136,7 @@ export function isReviewRequestPreprintId(preprint: PreprintId): preprint is Rev
'psyarxiv',
'scielo',
'socarxiv',
'techrxiv',
),
},
() => true,
Expand Down
2 changes: 1 addition & 1 deletion test/fc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -959,6 +959,7 @@ export const reviewRequestPreprintId = (): fc.Arbitrary<ReviewRequestPreprintId>
psyarxivPreprintId(),
scieloPreprintId(),
socarxivPreprintId(),
techrxivPreprintId(),
)

export const notAReviewRequestPreprintId = (): fc.Arbitrary<Exclude<PreprintId, ReviewRequestPreprintId>> =>
Expand All @@ -977,7 +978,6 @@ export const notAReviewRequestPreprintId = (): fc.Arbitrary<Exclude<PreprintId,
psychArchivesPreprintId(),
researchSquarePreprintId(),
scienceOpenPreprintId(),
techrxivPreprintId(),
verixivPreprintId(),
zenodoPreprintId(),
)
Expand Down

0 comments on commit ffc9099

Please sign in to comment.