How to include an external class into an arktype type?
I tried
and
but both create a Type<never> for me.
I'm using arktype 1.0.29-alpha
and
but both create a Type<never> for me.
I'm using arktype 1.0.29-alpha
import { TimeStub } from 'fauna'; // class
const clientDocument = type({
'id?': 'string',
'coll?': 'string',
'ts?': TimeStub
});import { TimeStub } from 'fauna'; // class
const clientDocument = type({
'id?': 'string',
'coll?': 'string',
'ts?': ['instanceof', TimeStub]
});