Hello,
Is there a way to use refs or constructor data in the standalone use?
The below code doesn't work, type error for this: Object is possibly 'undefined'
public refs = schema.refs({
today: luxon.utc().toISODate(),
})
@validate(schema.date({ format: 'yyyy-MM-dd' }, [rules.before(this.refs.today)]))
public date: DateTime
Hello,
Is there a way to use refs or constructor data in the standalone use?
The below code doesn't work, type error for this:
Object is possibly 'undefined'