typescript new instance of interface

Solutions on MaxInterview for typescript new instance of interface by the best coders in the world

showing results for - "typescript new instance of interface"
Juliette
03 Oct 2017
1const modal = {} as IModal;
2 or
3const modal: IModal = {
4    content: '',
5    form: '',
6    href: '',
7    $form: null,
8    $message: null,
9    $modal: null,
10    $submits: null
11};