Skip to content

Commit 7ed2585

Browse files
committed
feat(client:auth): add first type definition (callback: Function)
1 parent 9d4bcbd commit 7ed2585

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: app/templates/client/components/auth(auth)/auth.service.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ function AuthService($location, $http, $cookies, $q, appConfig, Util, User) {
2020
* @param {Function} callback - optional, function(error, user)
2121
* @return {Promise}
2222
*/
23-
login({email, password}, callback) {
23+
login({email, password}, callback: Function) {
2424
return $http.post('/auth/local', {
2525
email: email,
2626
password: password

0 commit comments

Comments
 (0)