-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
do some ts magic to get around the switch setup #46
do some ts magic to get around the switch setup #46
Conversation
…ery-connector into bob/fix-ts-error
): Promise<unknown[]> { | ||
let resourceArray: unknown[] = []; | ||
): Promise<FhirResource[]> { | ||
let resourceArray: FhirResource[] = []; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@robertandremitchell pushed the type checking from where you had it down a level to where we're making contact against the relevant FHIR response, which feels like the part of the stack where we should check for it. RN just logging out a mismatch in the event that we have an issue rather than "properly" handling the issue based on the scope of the ticket, but lmk if you have any issues here
Also renamed the function accordingly
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think that makes sense. I had tinkered with moving it yesterday but it felt like it was getting more complex. this definitely simplifies it a lot, which is great!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm!
): Promise<unknown[]> { | ||
let resourceArray: unknown[] = []; | ||
): Promise<FhirResource[]> { | ||
let resourceArray: FhirResource[] = []; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think that makes sense. I had tinkered with moving it yesterday but it felt like it was getting more complex. this definitely simplifies it a lot, which is great!
23ca516
into
rob/2783-fix-errors-generated-by-eslintrcjson
Adds a few utility classes to get around Typescript union type wonkiness