Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR TYPESCRIPT

typescript new instance of interface

const modal = {} as IModal;
 or
const modal: IModal = {
    content: '',
    form: '',
    href: '',
    $form: null,
    $message: null,
    $modal: null,
    $submits: null
};
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #typescript #instance #interface
ADD COMMENT
Topic
Name
7+5 =