File tree Expand file tree Collapse file tree 4 files changed +6
-10
lines changed Expand file tree Collapse file tree 4 files changed +6
-10
lines changed Original file line number Diff line number Diff line change @@ -71,9 +71,7 @@ class IDVClient {
71
71
* @param {string } sessionId
72
72
* @param {string } mediaId
73
73
*
74
- * @typedef {import('../data_type/media.js') } Media
75
- *
76
- * @returns {Promise<Media> }
74
+ * @returns {Promise<import('../data_type/media.js') | null> }
77
75
*/
78
76
getMediaContent ( sessionId , mediaId ) {
79
77
return this . idvService . getMediaContent ( sessionId , mediaId ) ;
Original file line number Diff line number Diff line change @@ -152,7 +152,7 @@ class IDVService {
152
152
* @param {string } sessionId
153
153
* @param {string } mediaId
154
154
*
155
- * @returns {Promise<Media> }
155
+ * @returns {Promise<Media | null > }
156
156
*/
157
157
getMediaContent ( sessionId , mediaId ) {
158
158
Validation . isString ( sessionId , 'sessionId' ) ;
Original file line number Diff line number Diff line change @@ -55,11 +55,9 @@ declare class IDVClient {
55
55
* @param {string } sessionId
56
56
* @param {string } mediaId
57
57
*
58
- * @typedef {import('../data_type/media.js') } Media
59
- *
60
- * @returns {Promise<Media> }
58
+ * @returns {Promise<import('../data_type/media.js') | null> }
61
59
*/
62
- getMediaContent ( sessionId : string , mediaId : string ) : Promise < import ( " ../data_type/media.js" ) > ;
60
+ getMediaContent ( sessionId : string , mediaId : string ) : Promise < import ( ' ../data_type/media.js' ) | null > ;
63
61
/**
64
62
* Deletes media related to a Yoti IDV session based
65
63
* on the supplied media ID
Original file line number Diff line number Diff line change @@ -49,9 +49,9 @@ declare class IDVService {
49
49
* @param {string } sessionId
50
50
* @param {string } mediaId
51
51
*
52
- * @returns {Promise<Media> }
52
+ * @returns {Promise<Media | null > }
53
53
*/
54
- getMediaContent ( sessionId : string , mediaId : string ) : Promise < Media > ;
54
+ getMediaContent ( sessionId : string , mediaId : string ) : Promise < Media | null > ;
55
55
/**
56
56
* Deletes media content for a given session and media ID
57
57
*
You can’t perform that action at this time.
0 commit comments