Skip to content

Commit a7b784d

Browse files
committed
jsdocs
1 parent c126ce5 commit a7b784d

File tree

3 files changed

+15
-6
lines changed

3 files changed

+15
-6
lines changed

src/structures/object.ts

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,27 @@ import { type MimeType, MimeTypeUtil } from "../utils/mimetype";
33
import { parseObjectUrl } from "../utils/object-url";
44

55
export class BlobObject {
6+
/** The id of the object */
67
id: string;
8+
/** The url to view or download the object */
79
url: string;
10+
/** The name of the object */
811
name: string;
12+
/** The prefix of the object (Optional) */
913
prefix?: string;
14+
/** The hash of the object */
1015
hash: string;
16+
/** The id of the user who created the object */
1117
userId: string;
18+
/** The file extension of the object */
1219
extension: string;
20+
/** The MIME type of the object */
1321
mimeType: MimeType;
22+
/** The size of the object in bytes */
1423
size: number;
24+
/** The expiration date of the object (Only available using `objects.list`) */
1525
expiresAt?: Date;
26+
/** The creation date of the object (Only available using `objects.list`) */
1627
createdAt?: Date;
1728

1829
constructor(data: BlobObjectData) {

src/utils/mimetype/index.ts

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,9 @@ import { type MimeType, mimeTypes, mimeTypesWithExtension } from "./mimetypes";
22

33
// biome-ignore lint/complexity/noStaticOnlyClass: organization
44
export class MimeTypeUtil {
5-
/**
6-
* Supported mime types with their extensions
7-
*/
5+
/** Supported mime types with their extensions */
86
static mimeTypesWithExtension = mimeTypesWithExtension;
9-
/**
10-
* All supported mime types
11-
*/
7+
/** All supported mime types */
128
static mimeTypes = mimeTypes;
139

1410
/**

src/validation/schemas/list.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
import { z } from "zod";
22

33
export const listObjectsSchema = z.object({
4+
/** Filter by prefix */
45
prefix: z.string().optional(),
6+
/** Return objects after this token */
57
continuationToken: z.string().optional(),
68
});
79

0 commit comments

Comments
 (0)