Fix type annotation of getMap
Make `getMap<T>()` take a generic type parameter just like `getArray<T>()`.
This commit is contained in:
parent
233872493b
commit
2c80a955da
@ -194,8 +194,9 @@ export class Doc extends Observable {
|
||||
}
|
||||
|
||||
/**
|
||||
* @template T
|
||||
* @param {string} [name]
|
||||
* @return {YMap<any>}
|
||||
* @return {YMap<T>}
|
||||
*
|
||||
* @public
|
||||
*/
|
||||
|
Loading…
x
Reference in New Issue
Block a user