Closed PeterChen1997 closed 8 months ago
Thx for this good repo! I found that I can't use Y.Map when I init the store. Am I doing wrong?
export declare type MappedTypeDescription<T extends DocTypeDescription> = { readonly [P in keyof T]: T[P] extends "xml" ? Y.XmlFragment : T[P] extends "text" ? Y.Text : T[P] extends Array<any> ? T[P] : T[P] extends object ? Partial<T[P]> : never; };
the object cannot be auto parsed as Y.Map
I got it. Just use the obj[key] will be fine. If doc notices that will be great!
Thx for this good repo! I found that I can't use Y.Map when I init the store. Am I doing wrong?
the object cannot be auto parsed as Y.Map