Merge pull request #13902 from MoonE/type-safe-collection
Improve Collection type-safety
This commit is contained in:
@@ -85,6 +85,7 @@ export {default as Translate} from './interaction/Translate.js';
|
||||
export function defaults(opt_options) {
|
||||
const options = opt_options ? opt_options : {};
|
||||
|
||||
/** @type {Collection<import("./interaction/Interaction.js").default>} */
|
||||
const interactions = new Collection();
|
||||
|
||||
const kinetic = new Kinetic(-0.005, 0.05, 100);
|
||||
|
||||
Reference in New Issue
Block a user