-
Notifications
You must be signed in to change notification settings - Fork 0
docs: fix TypeDoc config and add missing JSDoc @returns tags #4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -24,12 +24,22 @@ import { v4 } from "uuid"; | |
| */ | ||
| @ValidatorConstraint({ name: "thresholdWithinParticipants", async: false }) | ||
| class ThresholdWithinParticipants implements ValidatorConstraintInterface { | ||
| /** | ||
| * @param {number} threshold - The threshold value to validate. | ||
| * @param {ValidationArguments} args - Context containing the parent DTO. | ||
| * @returns {boolean} `true` if threshold is within participants or not yet | ||
| * parseable. | ||
| */ | ||
| validate(threshold: number, { object }: ValidationArguments): boolean { | ||
| const dto: KeyGenerationRequestDto = object as KeyGenerationRequestDto; | ||
| // If `participants` hasn't been parsed yet, defer to its own validator. | ||
| return dto.participants === undefined || threshold <= dto.participants; | ||
|
Comment on lines
+27
to
36
|
||
| } | ||
|
|
||
|
|
||
| /** | ||
| * @returns {string} The default validation failure message. | ||
| */ | ||
| defaultMessage({ value }: ValidationArguments): string { | ||
| return `Threshold (${value as number}) must not exceed participants.`; | ||
| } | ||
|
|
||
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -2,12 +2,23 @@ | |||||||||||||||||||||||||||||
| "entryPoints": ["src"], | ||||||||||||||||||||||||||||||
| "entryPointStrategy": "expand", | ||||||||||||||||||||||||||||||
| "out": "docs", | ||||||||||||||||||||||||||||||
| "excludePrivate": true, | ||||||||||||||||||||||||||||||
| "excludeProtected": true, | ||||||||||||||||||||||||||||||
| "excludeInternal": true, | ||||||||||||||||||||||||||||||
| "excludePrivate": false, | ||||||||||||||||||||||||||||||
| "excludeProtected": false, | ||||||||||||||||||||||||||||||
| "excludeInternal": false, | ||||||||||||||||||||||||||||||
| "readme": "none", | ||||||||||||||||||||||||||||||
| "disableSources": false, | ||||||||||||||||||||||||||||||
| "navigation": { | ||||||||||||||||||||||||||||||
| "includeCategories": true | ||||||||||||||||||||||||||||||
| }, | ||||||||||||||||||||||||||||||
| "externalSymbolLinkMappings": { | ||||||||||||||||||||||||||||||
| "@types/node": { | ||||||||||||||||||||||||||||||
| "\"crypto\".timingSafeEqual": "#" | ||||||||||||||||||||||||||||||
| }, | ||||||||||||||||||||||||||||||
| "@nestjs/common": { | ||||||||||||||||||||||||||||||
| "UnauthorizedException": "#" | ||||||||||||||||||||||||||||||
| }, | ||||||||||||||||||||||||||||||
| "@grpc/grpc-js": { | ||||||||||||||||||||||||||||||
| "Metadata": "#" | ||||||||||||||||||||||||||||||
|
Comment on lines
+15
to
+21
|
||||||||||||||||||||||||||||||
| "\"crypto\".timingSafeEqual": "#" | |
| }, | |
| "@nestjs/common": { | |
| "UnauthorizedException": "#" | |
| }, | |
| "@grpc/grpc-js": { | |
| "Metadata": "#" | |
| "\"crypto\".timingSafeEqual": "https://nodejs.org/api/crypto.html#cryptotimingsafeequala-b" | |
| }, | |
| "@nestjs/common": { | |
| "UnauthorizedException": "https://www.jsdocs.io/package/@nestjs/common#UnauthorizedException" | |
| }, | |
| "@grpc/grpc-js": { | |
| "Metadata": "https://www.jsdocs.io/package/@grpc/grpc-js#Metadata" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The README now hard-codes documentation links to
https://shreeed-app.github.io/.... This will be incorrect for forks, non-masterpreviews, or local documentation builds (wheredocs/exists). Consider keeping relative links (e.g.,./docs/...) or providing both a relative link and a hosted GitHub Pages link so the README remains portable.