Hi Eric,

How about using json schema: http://json-schema.org/

Tools like RAML use it to define REST API inputs and outputs.

Zsolt

On 19 February 2016 at 12:50, Sander Elias <[email protected]> wrote:

> 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.
>

-- 
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