-
Notifications
You must be signed in to change notification settings - Fork 333
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
Support types mapping include float #532
Conversation
Better we refactor the type mapping related codes in this PR. It's very easy to miss things when adding a new type. For example the part that related to POI. |
return Object.keys(supportedTypes).findIndex((k) => k === type) > -1; | ||
} | ||
|
||
export class GeneralTypes { |
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 feel you just need a getTypeByScalarName(): TypeInterfaces
, instead of a class.
toTsType: TypeScalar | undefined; | ||
toFieldScalar: FieldScalar | undefined; | ||
toSequelizeType: SequelizeTypes | undefined; | ||
toStoreOperation(data: any): Uint8Array | undefined; |
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.
toStoreOperation(data: any): Uint8Array | undefined; | |
toHashCode(data: any): Uint8Array | undefined; |
|
||
export const Json = { | ||
toFieldScalar: undefined, | ||
toTsType: undefined, |
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.
unknown
cc88157
to
172cae3
Compare
… add bn.js to dependency in common
e689788
to
67b6fba
Compare
@@ -223,9 +224,9 @@ export function setJsonObjectType( | |||
return graphQLJsonObject; | |||
} | |||
|
|||
type GraphQLNonListType = GraphQLScalarType | GraphQLObjectType<unknown, unknown>; // check | GraphQLInterfaceType | GraphQLUnionType | GraphQLEnumType; | |||
type GraphQLNonListType = GraphQLScalarType | GraphQLObjectType<any, any>; // check | GraphQLInterfaceType | GraphQLUnionType | GraphQLEnumType; |
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.
unknown dose look better here
* support float and types mapping,change eslint complexity back to 20 , add bn.js to dependency in common * Fix bn.js dependency * change BN to bn * remove bn.js in dependencies * fix extractType
Closes #530