Open the-red opened 4 years ago
@the-red Thank you for reporting this! We are going to consider this. Could you describe your use case?
Changing these types optional also leads the usage inconvenient because it requires to check whether the type exists or not and disables to infer using discriminated unions. If the use case is a type for updating, it seems to be a good option to add another type for it
Sorry for the late response.
As you say, the use case is a type for updating. To add record, I'd like to write as follows. But type error occurs.
It's hassle to write the following.
In a similar case, when I put a number in a field of type Number, I got an error. It would be nice if you could prepare different types for the reference and update systems 🚀
price: kintone.fieldTypes.Number
@the-red Thank you for your clarification! We'll consider having a solution for this.
We've merged dts-gen
into js-sdk
, so this issue has been transferred.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
not stale
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
not stale
@the-red Thank you! I reopened.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Not stale
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Not stale... 🤮
I generated type definition of SUBTABLE field. The
type
andvalue.id
properties are required, which makes them difficult to use.I wish the
type
andvalue.id
properties were no longer required.