fix syntax of return with typecast
This commit is contained in:
@@ -218,9 +218,10 @@ class DragAndDrop extends Interaction {
|
|||||||
*/
|
*/
|
||||||
tryReadFeatures_(format, text, options) {
|
tryReadFeatures_(format, text, options) {
|
||||||
try {
|
try {
|
||||||
return
|
return (
|
||||||
/** @type {Array<import("../Feature.js").default>} */
|
/** @type {Array<import("../Feature.js").default>} */
|
||||||
(format.readFeatures(text, options));
|
(format.readFeatures(text, options))
|
||||||
|
);
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user