Skip to content

Commit 895e519

Browse files
committed
defination improve
1 parent 3c8a9fd commit 895e519

File tree

2 files changed

+8
-12
lines changed

2 files changed

+8
-12
lines changed

index.ts

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -99,8 +99,7 @@ class ImageKit {
9999
}
100100

101101
/**
102-
* You can add multiple origins in the same ImageKit.io account.
103-
* URL endpoints allow you to configure which origins are accessible through your account and set their preference order as well.
102+
* This method allows you to create an URL to access a file using the relative or absolute path and the ImageKit URL endpoint (urlEndpoint). The file can be an image, video or any other static file supported by ImageKit.
104103
*
105104
* @see {@link https://github.com/imagekit-developer/imagekit-nodejs#url-generation}
106105
* @see {@link https://docs.imagekit.io/integration/url-endpoints}
@@ -113,10 +112,7 @@ class ImageKit {
113112
}
114113

115114
/**
116-
* You can upload files to ImageKit.io media library from your server-side using private API key authentication.
117-
*
118-
* File size limit
119-
* The maximum upload file size is limited to 25MB.
115+
* You can upload file to ImageKit.io media library from your server-side using private API key authentication.
120116
*
121117
* @see {@link https://docs.imagekit.io/api-reference/upload-file-api/server-side-file-upload}
122118
*
@@ -133,7 +129,7 @@ class ImageKit {
133129

134130
/**
135131
* This API can list all the uploaded files in your ImageKit.io media library.
136-
* For searching and filtering, you can use query parameters as described below.
132+
* For searching and filtering, you can use query parameters as described in docs.
137133
*
138134
* @see {@link https://docs.imagekit.io/api-reference/media-api/list-and-search-files}
139135
*
@@ -165,7 +161,7 @@ class ImageKit {
165161
}
166162

167163
/**
168-
* Get all versions of an assset API
164+
* Get all versions of an assset.
169165
*
170166
* @see {@link https://docs.imagekit.io/api-reference/media-api/get-file-versions}
171167
*
@@ -181,7 +177,7 @@ class ImageKit {
181177
}
182178

183179
/**
184-
* Get file version details API
180+
* Get file details of a specific version.
185181
*
186182
* @see {@link https://docs.imagekit.io/api-reference/media-api/get-file-version-details}
187183
*

libs/interfaces/Transformation.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import supportedTransforms from "../constants/supportedTransforms";
2-
31
export type TransformationPosition = "path" | "query";
42

5-
export type Transformation = Partial<typeof supportedTransforms>;
3+
export interface Transformation {
4+
[key: string]: string | number | boolean
5+
}

0 commit comments

Comments
 (0)