const LikeCountDB = vnamo.make({
parser: flow(
Schema.decodeUnknownSync(Schema.Struct({
...LikeCount.fields,
createdAt: UnixTimestampSchema,
})),
// true here skips doing the validations for a second time
x => new LikeCount(x, true),
),
// ... rest of config
});
const LikeCountDB = vnamo.make({
parser: flow(
Schema.decodeUnknownSync(Schema.Struct({
...LikeCount.fields,
createdAt: UnixTimestampSchema,
})),
// true here skips doing the validations for a second time
x => new LikeCount(x, true),
),
// ... rest of config
});