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
We had a bug due to a corrupted state that should store an ObjectMetadaItem but seems to get updated to some point to an ObjectMetadataItem.id.
const{ filterableFieldMetadataItems }=useFilterableFieldMetadataItems(// expects objectMetadataItemobjectMetadataItem?.id,// Type any)
By digging deeper we can find the follow type declaration:
// packages/twenty-front/src/generated-metadata/graphql.tsexporttypeScalars={ID: {input: string;output: string;}String: {input: string;output: string;}Boolean: {input: boolean;output: boolean;}Int: {input: number;output: number;}Float: {input: number;output: number;}/** Cursor for paging through collections */ConnectionCursor: {input: any;output: any;}/** A date-time string at UTC, such as 2019-12-03T09:54:33Z, compliant with the date-time format. */DateTime: {input: any;output: any;}/** The `JSON` scalar type represents JSON values as specified by [ECMA-404](http://www.ecma-international.org/publications/files/ECMA-ST/ECMA-404.pdf). */JSON: {input: any;output: any;}/** The `JSONObject` scalar type represents JSON objects as specified by [ECMA-404](http://www.ecma-international.org/publications/files/ECMA-ST/ECMA-404.pdf). */JSONObject: {input: any;output: any;}/** A UUID scalar type */UUID: {input: unknown;output: unknown;}/** The `Upload` scalar type represents a file upload. */Upload: {input: any;output: any;}};
Which will make any of the generated types idJSON and so on typed as any by default.
Fixing this
By mutating the UUID occurence from any to string creates 413 typescript errors.
This should be addressed asap because it will keep increasing
The text was updated successfully, but these errors were encountered:
Introduction
This issue results from twentyhq/twenty#10259 (comment)
We had a bug due to a corrupted state that should store an
ObjectMetadaItem
but seems to get updated to some point to anObjectMetadataItem.id
.By digging deeper we can find the follow type declaration:
Which will make any of the
generated
typesid
JSON
and so on typed as any by default.Fixing this
By mutating the
UUID
occurence fromany
tostring
creates 413 typescript errors.This should be addressed asap because it will keep increasing
The text was updated successfully, but these errors were encountered: