Fix type annotation of getMap

Make `getMap<T>()` take a generic type parameter just like `getArray<T>()`.
This commit is contained in:
Viktor Qvarfordt 2021-10-10 11:05:18 +02:00 committed by GitHub
parent 233872493b
commit 2c80a955da
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -194,8 +194,9 @@ export class Doc extends Observable {
} }
/** /**
* @template T
* @param {string} [name] * @param {string} [name]
* @return {YMap<any>} * @return {YMap<T>}
* *
* @public * @public
*/ */