Answers for "typescript new instance of interface"

-1

typescript new instance of interface

const modal = {} as IModal;
 or
const modal: IModal = {
    content: '',
    form: '',
    href: '',
    $form: null,
    $message: null,
    $modal: null,
    $submits: null
};
Posted by: Guest on April-07-2021

Code answers related to "typescript new instance of interface"

Code answers related to "TypeScript"

Browse Popular Code Answers by Language