Closed gulfaraz closed 4 months ago
This PR changes gen:types:typescript to generate types for array types instead of unknown.
// todos Row: { details_words: unknown | null } // Functions details_words: { Args: { "": unknown } Returns: unknown }
Example from #581
CompositeTypes: { array_type: { my_text_array: unknown } }
// todos Row: { details_words: string[] | null } // Functions details_words: { Args: { "": unknown } Returns: string[] } CompositeTypes: { array_type: { my_text_array: string[] } }
LGTM, nice update, thanks! cc @soedirgo
@gulfaraz you don't need to keep the branch up to date. Once person responsible for this repo is back, they'll handle it :)
@kamilogorek Good to know. Thank you.
What kind of change does this PR introduce?
This PR changes gen:types:typescript to generate types for array types instead of unknown.
What is the current behavior?
Example from #581
What is the new behavior?