Skip to content

Commit

Permalink
make @throws type link so it's visible in docs
Browse files Browse the repository at this point in the history
  • Loading branch information
zefir-git committed Aug 4, 2024
1 parent cf63b8f commit 054ce61
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Multipart.ts
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ export class Multipart implements Part {
/**
* Parse multipart bytes (including headers). The boundary and media type are determined from the headers.
* @param data Byte representation of the multipart headers and body
* @throws {SyntaxError} If the `Content-Type` header is missing or does not include a boundary
* @throws {@link !SyntaxError} If the `Content-Type` header is missing or does not include a boundary
*/
public static parse(data: Uint8Array): Multipart {
return Multipart.part(Component.parse(data));
Expand All @@ -163,7 +163,7 @@ export class Multipart implements Part {
/**
* Create Multipart from a {@link Part}. The boundary and media type are determined from the part's headers.
* @param part The part
* @throws {SyntaxError} If the `Content-Type` header is missing or does not include a boundary
* @throws {@link !SyntaxError} If the `Content-Type` header is missing or does not include a boundary
*/
public static part(part: Part): Multipart {
const type = part.headers.get("content-type");
Expand Down

0 comments on commit 054ce61

Please sign in to comment.