Discovered an issue while kicking the tires with the SolidJS adapter where the TypeScript compiler was not inferring the correct typings for object fields. Came to realize that our DocRecord type needed to be refined further. This should stabilize the types and give better autocomplete.
Concrete example is, if you had something like { foo: true } that was passed into the generics formula, the compiler would say your object had a field foo whose available values were DocFragment & true instead of simply resolving to boolean which is a valid DocFragment value type.
Discovered an issue while kicking the tires with the SolidJS adapter where the TypeScript compiler was not inferring the correct typings for object fields. Came to realize that our
DocRecord
type needed to be refined further. This should stabilize the types and give better autocomplete.Concrete example is, if you had something like
{ foo: true }
that was passed into the generics formula, the compiler would say your object had a fieldfoo
whose available values wereDocFragment & true
instead of simply resolving toboolean
which is a validDocFragment
value type.