I'm still quite new to TypeScript and I have the following syntax that confuses me a bit.
export interface FileDialogFactory {
(props: FileDialogProps): FileDialog;
}
As far as I understand it, this is an interface that can later be used by some variable. Inside of this interface is a defined variable name named props that has the type FileDialogProps. What I don't understand is the meaning of the colon ":" and the the following FileDialog. So what type is the variable props supposed to be? Is it FileDialogProps or is it FileDialog?