You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// `key` is for all intents and purposes the type of keyof `helpers`, which itself is the type of `initialValue` plus incoming properties from `queries`
54
+
// if `Object.keys(something)` returned Array<keyof typeof something> this explicit type assertion would not be necessary
55
+
// see https://stackoverflow.com/questions/55012174/why-doesnt-object-keys-return-a-keyof-type-in-typescript
56
+
helpers[keyaskeyoftypeofinitialValue]=()=>{
46
57
thrownewTypeError(
47
58
'For queries bound to document.body a global document has to be available... Learn more: https://testing-library.com/s/screen-global-error',
0 commit comments