Hi Eric,

You do realize that the typing only works during development? Once it hits 
runtime, it's completely gone. You can't use it to enforce data-models..

However, this is something I use to cover the objects that my DB spits out 
to me. The only thing I know for sure there is a string id...

export interface ddbObject {
    id?: String;
    [others: string]: any;
}

Does this help you a bit?

Regards
Sander

-- 
You received this message because you are subscribed to the Google Groups 
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

Reply via email to