@@ -41,50 +41,50 @@ export class ScratchStorage {
4141 }
4242
4343 /**
44- * @return {Asset } - the `Asset` class constructor.
45- * @constructor
44+ * @returns {Asset } - the `Asset` class constructor.
45+ * @class
4646 */
4747 get Asset ( ) {
4848 return _Asset ;
4949 }
5050
5151 /**
52- * @return {AssetType } - the list of supported asset types.
53- * @constructor
52+ * @returns {AssetType } - the list of supported asset types.
53+ * @class
5454 */
5555 get AssetType ( ) {
5656 return _AssetType ;
5757 }
5858
5959 /**
60- * @return {DataFormat } - the list of supported data formats.
61- * @constructor
60+ * @returns {DataFormat } - the list of supported data formats.
61+ * @class
6262 */
6363 get DataFormat ( ) {
6464 return _DataFormat ;
6565 }
6666
6767 /**
6868 * Access the `scratchFetch` module within this library.
69- * @return {module } the scratchFetch module, with properties for `scratchFetch`, `setMetadata`, etc.
69+ * @returns {module } the scratchFetch module, with properties for `scratchFetch`, `setMetadata`, etc.
7070 */
7171 get scratchFetch ( ) {
7272 return _scratchFetch ;
7373 }
7474
7575 /**
7676 * @deprecated Please use the `Asset` member of a storage instance instead.
77- * @return {Asset } - the `Asset` class constructor.
78- * @constructor
77+ * @returns {Asset } - the `Asset` class constructor.
78+ * @class
7979 */
8080 static get Asset ( ) {
8181 return _Asset ;
8282 }
8383
8484 /**
8585 * @deprecated Please use the `AssetType` member of a storage instance instead.
86- * @return {AssetType } - the list of supported asset types.
87- * @constructor
86+ * @returns {AssetType } - the list of supported asset types.
87+ * @class
8888 */
8989 static get AssetType ( ) {
9090 return _AssetType ;
@@ -174,7 +174,7 @@ export class ScratchStorage {
174174 /**
175175 * TODO: Should this be removed in favor of requesting an asset with `null` as the ID?
176176 * @param {AssetType } type - Get the default ID for assets of this type.
177- * @return {?string } The ID of the default asset of the given type, if any.
177+ * @returns {?string } The ID of the default asset of the given type, if any.
178178 */
179179 getDefaultAssetId ( type : AssetType ) : AssetId | undefined {
180180 if ( Object . prototype . hasOwnProperty . call ( this . defaultAssetId , type . name ) ) {
@@ -199,7 +199,7 @@ export class ScratchStorage {
199199 * @param {AssetType } assetType - The type of asset to fetch. This also determines which asset store to use.
200200 * @param {string } assetId - The ID of the asset to fetch: a project ID, MD5, etc.
201201 * @param {DataFormat } [dataFormat] - Optional: load this format instead of the AssetType's default.
202- * @return {Promise.<Asset> } A promise for the requested Asset.
202+ * @returns {Promise.<Asset> } A promise for the requested Asset.
203203 * If the promise is resolved with non-null, the value is the requested asset.
204204 * If the promise is resolved with null, the desired asset could not be found with the current asset sources.
205205 * If the promise is rejected, there was an error on at least one asset source. HTTP 404 does not count as an
@@ -247,7 +247,7 @@ export class ScratchStorage {
247247 * @param {?DataFormat } [dataFormat] - Optional: load this format instead of the AssetType's default.
248248 * @param {Buffer } data - Data to store for the asset
249249 * @param {?string } [assetId] - The ID of the asset to fetch: a project ID, MD5, etc.
250- * @return {Promise.<object> } A promise for asset metadata
250+ * @returns {Promise.<object> } A promise for asset metadata
251251 */
252252 store ( assetType : AssetType , dataFormat : DataFormat | null | undefined , data : AssetData , assetId ?: AssetId ) {
253253 dataFormat = dataFormat || assetType . runtimeFormat ;
0 commit comments