We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
ObjectTemplate type mappings are wrong, combining a template with a field of type Date will not be typed correctly. See
The text was updated successfully, but these errors were encountered:
@raimohanska The issue lies within:
export declare type ObjectTemplate<O> = { [K in keyof O]: O[K] extends Observable<infer I> ? I : (O[K] extends Record<any, any> ? ObjectTemplate<O[K]> : (O[K] extends Array<infer I2> ? ArrayTemplate<I2> : O[K])); };
This should include a separate check for Date. Right now the check O[K] extends Record<any, any> matches Date objects.
Date
O[K] extends Record<any, any>
Sorry, something went wrong.
Drop a pull request if you want this fixed. I honestly haven’t touched the library for a long time but I believe a fix release can be made for this.
No branches or pull requests
ObjectTemplate type mappings are wrong, combining a template with a field of type Date will not be typed correctly. See
The text was updated successfully, but these errors were encountered: