Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement types for signature component #36

Merged
merged 1 commit into from
Dec 7, 2023

Conversation

sergei-maertens
Copy link
Member

Partly closes #2

@sergei-maertens sergei-maertens changed the title ✨ [#2] Implement signature component schema type definition Implement types for signature component Dec 5, 2023
*
* When a non-empty value is set, enforce that it is serialized as a data URI.
*/
export type SignatureValue = `data:image/png;base64,${string}`;
Copy link
Contributor

@Viicos Viicos Dec 6, 2023

Choose a reason for hiding this comment

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

Imagine having this available in Python.. 🥹

Copy link
Member Author

Choose a reason for hiding this comment

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

I find it a bit scary to be honest. And there doesn't seem to be a definitive way in TS to express that something is a non-empty string, so it's clearly still lacking a lot.

@sergei-maertens sergei-maertens force-pushed the feature/2-signature-type branch from b754ac3 to 384b621 Compare December 7, 2023 09:52
@sergei-maertens sergei-maertens merged commit 56d6edf into main Dec 7, 2023
3 checks passed
@sergei-maertens sergei-maertens deleted the feature/2-signature-type branch December 7, 2023 09:52
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.

Export Formio Typescript types
2 participants