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
import{F,O,S}from'ts-toolbelt'declarefunctionget<Obextendsobject,Pextendsstring>(object: Ob,path: F.AutoPath<Ob,P>): O.Path<Ob,S.Split<P,'.'>>constworks=get({fast: true},'')// ✅ this errorsconstbreaks=get({car: 'toyota'},'')// 🚨 no error here, but it should
Expected behavior
Strings should work like any other field.
Possible Solution
Use F.AutoPath<O, S> | keyof O
Screenshots
Additional context
The text was updated successfully, but these errors were encountered:
🐞 Bug Report
Describe the bug
If you pass
F.AutoPath<O, S>
whereO
includes astring
as one of its values, you get no autocomplete.Reproduce the bug
See here.
Expected behavior
Strings should work like any other field.
Possible Solution
Use
F.AutoPath<O, S> | keyof O
Screenshots
Additional context
The text was updated successfully, but these errors were encountered: