Add doc for TypeVariant

This commit is contained in:
Him188 2020-10-15 13:04:30 +08:00
parent ccc9128023
commit 82de404149

View File

@ -9,11 +9,18 @@
package net.mamoe.mirai.console.command.descriptor
import net.mamoe.mirai.console.command.parse.CommandCall
import net.mamoe.mirai.console.command.parse.CommandCallParser
import net.mamoe.mirai.console.command.parse.RawCommandArgument
import net.mamoe.mirai.message.data.MessageContent
import kotlin.reflect.KType
import kotlin.reflect.typeOf
/**
* Implicit type variant specified by [CommandCallParser].
*
* [TypeVariant] is not necessary for all [CommandCall]s.
*/
@ExperimentalCommandDescriptors
public interface TypeVariant<out OutType> {
/**