barbatus / ng2-meteor-accounts

Meteor Accounts for Angular2
13 stars 2 forks source link

Change types to interfaces #4

Open ShMcK opened 8 years ago

ShMcK commented 8 years ago

Interfaces in TypeScript can be extended upon, whereas types can't.

/* type AccountDetails = { */
interface AccountDetails {
    ...
}

/* type loginOptions =  { */
interface LoginOptions {
   ...
}

This will allow the User type to be extended in the Angular2 tutorial:

/typings/party.d.ts

interface User extends ngMeteorAccounts.AccountDetails {
  invited: boolean;
}