typescript create instance of interface code example
Example 1: export interface typescript
interface Props {}
export interface IRefered {
name: string
}
Example 2: typescript new instance of interface
const modal = {} as IModal;
or
const modal: IModal = {
content: '',
form: '',
href: '',
$form: null,
$message: null,
$modal: null,
$submits: null
};