Convert lib/actions/auth to typescript

Change-type: patch
This commit is contained in:
Pagan Gazzard
2020-02-05 17:55:29 +00:00
parent 9d04e616a8
commit f9ece2ce7d
4 changed files with 195 additions and 173 deletions

View File

@ -101,7 +101,7 @@ export async function exitIfNotLoggedIn(): Promise<void> {
}
export function askLoginType() {
return getForm().ask({
return getForm().ask<'web' | 'credentials' | 'token' | 'register'>({
message: 'How would you like to login?',
name: 'loginType',
type: 'list',