Quantcast
Channel: Ionic Framework - Ionic Forum
Viewing all articles
Browse latest Browse all 49385

Accessing an interface inside a declared module... I have no clue

$
0
0

@Slitelee wrote:

Does anyone know how to do this?

I need to be able to access or loop through the property keys of the embedded interface.

let server = server.calendar;
server = undefined

Why is this undefined?

This seems like it should be simple to do but I spent way more than is reasonable on it. I’m still relatively new to Typescript and Ionic so any help would greatly be appreciated.

Calendar.d.ts file looks like…

declare module server {

interface calendar {

mobileID: string;
extid: string;
date?: Date;
contactid: string;

Posts: 2

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 49385

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>