Skip to content

Commit b40648d

Browse files
committed
fix(ts): improving ObjectID methods return type
1 parent 12983bd commit b40648d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/methods/object-id-pad.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
* @description Merge received ObjectID string with new index.
66
* @param {string} id - Base ID string, 24 digits hexadecimal
77
* @param {string} index - The index to be inserted on the end of base ID, creating new ObjectID
8-
* @returns {string}
8+
* @returns {string & { length: 24 }}
99
*
1010
* @example
1111
* const id = '5ce59fbf887ef430f1f6ed29'

src/methods/random-object-id.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* @memberof ecomUtils
44
* @name randomObjectId
55
* @description Generate a random object id with 24 chars hexadecimal string.
6-
* @returns {string}
6+
* @returns {string & { length: 24 }}
77
*
88
* @example
99
* ecomUtils.randomObjectId()

0 commit comments

Comments
 (0)