-
Type: Bug
-
Resolution: Unresolved
-
Priority: Major - P3
-
None
-
Affects Version/s: None
-
Component/s: Realm Babel
-
1 - XS (<= 1 day)
-
5540
I'm using the Babel plugin syntax and using a Realm.Set<T> prop but I got a type error saying that the prop does no exist:
I think you guys need to take a look at this RemappedRealmTypes<T>
If I add a RealmSetsRemappedModelPart type, for example something like below, the error goes away.
Unable to find source-code formatter for language: ts. Available languages are: actionscript, ada, applescript, bash, c, c#, c++, cpp, css, erlang, go, groovy, haskell, html, java, javascript, js, json, lua, none, nyan, objc, perl, php, python, r, rainbow, ruby, scala, sh, sql, swift, visualbasic, xml, yaml
type RealmSetsRemappedModelPart<T> = {
[K in ExtractPropertyNamesOfType<T, Realm.Set<any>>]?: T[K] extends Realm.Set<infer GT> ? Array<GT | Unmanaged<GT>> : never
}
type RemappedRealmTypes<T> =
RealmListsRemappedModelPart<T> &
RealmDictionaryRemappedModelPart<T> &
RealmSetsRemappedModelPart<T>;