Skip to content

Instantly share code, notes, and snippets.

@dsibinski
Created August 29, 2020 08:09
Show Gist options
  • Save dsibinski/fceb3650f2121640a5e32a78ec3dc740 to your computer and use it in GitHub Desktop.
Save dsibinski/fceb3650f2121640a5e32a78ec3dc740 to your computer and use it in GitHub Desktop.
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