Closed mangalaman93 closed 5 months ago
I am getting this error when trying to marshal the Point type that I have defined below.
Point
export namespace postgresql { @json export class Point { X: f64 = 0; Y: f64 = 0; constructor(X: f64, Y: f64) { this.X = X; this.Y = Y; } } }
The error is
Could not serialize data of type Point. Make sure to add the correct decorators to classes. at ~lib/json-as/assembly/index.ts:251:7
Working for me
I am getting this error when trying to marshal the
Point
type that I have defined below.The error is