Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
module.exports.UsersService = function (url) {
// ... UsersService init code ...
};
module.exports.UsersService.prototype.getUser = function (id) {
// ... code to get active user by id ...
};
export class NewUsersService {
url: string;
constructor(url: string) {
// ... NewUsersService init code ...
}
getUser(id: number): JQuery.Promise<UserViewModel, any, any> {
// ... code to get active user by id ...
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.