Is there a way for me to specify the type of a filename field in my object? The file name will consist of a string representing the name of the uploaded file along with its extension.
For instance:
{
icon: "my_icon.svg"
}
I am looking for a method to make sure that all filenames end with ".svg". Currently, my attempt at this is not successful. Here's what I have tried so far:
{
icon: string & ".svg"
}