Interface INativeFunction<T, Unwrap>

interface INativeFunction {
    aliases?: `$${string}`[];
    args?: [...T[]];
    brackets?: boolean;
    deprecated?: boolean;
    description: string;
    examples?: string[];
    execute: NativeFunctionExecutor<T, Unwrap>;
    experimental?: boolean;
    name: `$${string}`;
    output?: ArgType | EnumLike<any> | (ArgType | EnumLike<any>)[];
    unwrap: Unwrap;
    version?: string;
}

Type Parameters

  • T extends [...IArg[]]

  • Unwrap extends boolean = boolean

Properties

aliases?: `$${string}`[]

Aliases this function has

args?: [...T[]]
brackets?: boolean

If undefined, function has no brackets

If false, function can have brackets.

If true, function must have brackets.

deprecated?: boolean
description: string
examples?: string[]
execute: NativeFunctionExecutor<T, Unwrap>
experimental?: boolean
name: `$${string}`
output?: ArgType | EnumLike<any> | (ArgType | EnumLike<any>)[]
unwrap: Unwrap

Resolves all arguments and are passed through execute params.

version?: string

Do not provide this.

Generated using TypeDoc