This commit is contained in:
Pig Fang 2020-03-21 17:34:42 +08:00
parent 4c981529e1
commit ce297f66f9

View File

@ -2,7 +2,7 @@ import type { Stdio } from 'blessing-skin-shell'
import * as fetch from '../net'
import { User, Texture } from '../types'
type Subcommand = 'add' | 'remove'
type SubCommand = 'add' | 'remove'
type Response = fetch.ResponseBody<{ user: User; texture: Texture }>
@ -12,7 +12,7 @@ export default async function closet(stdio: Stdio, args: string[]) {
return
}
const command = args[0] as Subcommand
const command = args[0] as SubCommand | undefined
const uid = args[1]
const tid = args[2]