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
There is another better approach to define typings in a better way, for example, define a list of all resources in our typings (e.g., type ResourceTypeMap = { Patient: Patient, Practitioner: Practitioner, ...}) and then use T extends keyof ResourceTypeMap instead of T extends AidboxResource
Example,
export async function getFHIRResources<R extends AidboxResource = never>
will force you to specify type
The text was updated successfully, but these errors were encountered: