Gezim
06/15/2022, 10:50 PMdata
param?
For example:
const store = await this.prisma.store.create({
include: { accounts: true, shopifyOfflineSession: true },
data: {
...options,
}
}
I’ve not tested it thoroughly but it feels that types aren’t strictly checked like this.Jacob Martin
06/15/2022, 10:51 PMJacob Martin
06/15/2022, 10:53 PMJacob Martin
06/15/2022, 10:55 PMNurul
06/16/2022, 6:36 AMGezim
06/16/2022, 4:37 PMJacob Martin
06/16/2022, 4:43 PMio-ts
Jacob Martin
06/16/2022, 4:43 PMJacob Martin
06/16/2022, 4:43 PMJacob Martin
06/16/2022, 4:43 PMGezim
06/16/2022, 4:50 PMYou can eliminate all runtime boundaries by doing proper runtime type..Never knew that! Thanks!
Gezim
06/16/2022, 4:51 PMGezim
06/16/2022, 4:53 PMGezim
06/16/2022, 4:55 PMJacob Martin
06/17/2022, 6:25 PMJacob Martin
06/17/2022, 6:25 PMGezim
06/17/2022, 7:43 PMJacob Martin
06/17/2022, 8:03 PMProperty 'b' is missing in type '{ a: string; }' but required in type 'Y'.
Jacob Martin
06/17/2022, 8:04 PMJacob Martin
06/17/2022, 8:07 PMJacob Martin
06/17/2022, 8:07 PM