Yurba.js Documentation
    Preparing search index...

    Type Alias CommandArgsSchemaEntry

    Represents a single argument schema entry for a command.

    // A required string argument
    { type: 'string', required: true }
    // An optional integer argument with a default value
    { type: 'int', default: 0 }
    // A rest argument that captures all remaining input
    { type: 'string', rest: true }
    type CommandArgsSchemaEntry = {
        default?: any;
        required?: boolean;
        rest?: boolean;
        type: "string" | "int";
    }
    Index

    Properties

    default?: any
    required?: boolean
    rest?: boolean
    type: "string" | "int"