Skip to content

Commit 054ce61

Browse files
committed
make @throws type link so it's visible in docs
1 parent cf63b8f commit 054ce61

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Multipart.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ export class Multipart implements Part {
154154
/**
155155
* Parse multipart bytes (including headers). The boundary and media type are determined from the headers.
156156
* @param data Byte representation of the multipart headers and body
157-
* @throws {SyntaxError} If the `Content-Type` header is missing or does not include a boundary
157+
* @throws {@link !SyntaxError} If the `Content-Type` header is missing or does not include a boundary
158158
*/
159159
public static parse(data: Uint8Array): Multipart {
160160
return Multipart.part(Component.parse(data));
@@ -163,7 +163,7 @@ export class Multipart implements Part {
163163
/**
164164
* Create Multipart from a {@link Part}. The boundary and media type are determined from the part's headers.
165165
* @param part The part
166-
* @throws {SyntaxError} If the `Content-Type` header is missing or does not include a boundary
166+
* @throws {@link !SyntaxError} If the `Content-Type` header is missing or does not include a boundary
167167
*/
168168
public static part(part: Part): Multipart {
169169
const type = part.headers.get("content-type");

0 commit comments

Comments
 (0)