Download Latest Version Libraries _ Docker Upgrades source code.tar.gz (492.4 kB)
Email in envelope

Get an email when there's a new version of Node.js Backend Architecture

Home / 1.0.1
Name Modified Size InfoDownloads / 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: IUserUser and UserUserModel

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

Source: README.md, updated 2020-04-03