-
Type:
Improvement
-
Resolution: Unresolved
-
Priority:
Minor - P4
-
None
-
Affects Version/s: None
-
Component/s: Realm React
-
1 - XS (<= 1 day)
-
6764
-
Not Needed
If you want to provide e.g. a type for the Atlas App Services functions defined (generic type param 1), currently you'd also need to provide types for the remaining generic type params:
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
const user = useUser<MyAppServicesFunctions, Record<string, unknown>, Realm.DefaultUserProfileData>();
We could provide defaults to reduce the verbosity:
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
const user = useUser<MyAppServicesFunctions>();