typescript new instance of interface code example
Example: typescript new instance of interface
const modal = {} as IModal;
or
const modal: IModal = {
content: '',
form: '',
href: '',
$form: null,
$message: null,
$modal: null,
$submits: null
};