Annotating a field with a generic type in a Schema.Class

How can I annotate with a generic the type of a field for a
Schema.Class
?
export class Session<D extends Schema.Unknown = Schema.Unknown> extends Schema.Class<Session>("session")({
    data: D
}) {}
Was this page helpful?