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

View File

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