Merge pull request #13902 from MoonE/type-safe-collection

Improve Collection type-safety
This commit is contained in:
MoonE
2022-07-30 21:38:48 +02:00
committed by GitHub
11 changed files with 151 additions and 118 deletions

View File

@@ -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);