Skip to content

Conversation

@marcj
Copy link
Owner

@marcj marcj commented Oct 22, 2025

This adds support for

    type A = string & MinLength<5> & MaxLength<15>;
    expect(stringifyResolvedType(typeOf<A>())).toBe(`string & MinLength<5> & MaxLength<15>`);

But is not fully implemented. It needs to map all ValidatorMeta and other TypeAnnotation to its type expressions for all type annotations and validators we have. Bonus points for supporting user-land annotations as well.

return binaryBigIntAnnotation.getFirst(type) === BinaryBigIntType.signed ? 'SignedBinaryBigInt' : 'BinaryBigInt';
}
case referenceAnnotation.symbol:
return 'Reference';
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this and a few others should return ['Reference,' args]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants