| Name | Modified | Size | Downloads / Week |
|---|---|---|---|
| Parent folder | |||
| Clean interface naming convension source code.tar.gz | 2020-04-03 | 374.0 kB | |
| Clean interface naming convension source code.zip | 2020-04-03 | 413.6 kB | |
| README.md | 2020-04-03 | 634 Bytes | |
| Totals: 3 Items | 788.2 kB | 0 | |
The naming convention has been changed for all the interfaces:
Earlier:
:::typescript
export interface IUser extends Document {
name: string;
...
}
const User = model<IUser>(DOCUMENT_NAME, schema, COLLECTION_NAME);
export default User;
Now:
IUser → User and User → UserModel
:::typescript
export default interface User extends Document {
name: string;
...
}
export const UserModel = model<User>(DOCUMENT_NAME, schema, COLLECTION_NAME);
Similar changes for IApiKey, IRole, IKeystore, and IBlog