mirror of
https://github.com/mamoe/mirai.git
synced 2025-01-10 18:40:15 +08:00
Add doc for TypeVariant
This commit is contained in:
parent
ccc9128023
commit
82de404149
@ -9,11 +9,18 @@
|
|||||||
|
|
||||||
package net.mamoe.mirai.console.command.descriptor
|
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.console.command.parse.RawCommandArgument
|
||||||
import net.mamoe.mirai.message.data.MessageContent
|
import net.mamoe.mirai.message.data.MessageContent
|
||||||
import kotlin.reflect.KType
|
import kotlin.reflect.KType
|
||||||
import kotlin.reflect.typeOf
|
import kotlin.reflect.typeOf
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Implicit type variant specified by [CommandCallParser].
|
||||||
|
*
|
||||||
|
* [TypeVariant] is not necessary for all [CommandCall]s.
|
||||||
|
*/
|
||||||
@ExperimentalCommandDescriptors
|
@ExperimentalCommandDescriptors
|
||||||
public interface TypeVariant<out OutType> {
|
public interface TypeVariant<out OutType> {
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user