@samatawy/rules
    Preparing search index...

    Interface AutocompleteSuggestion

    A single suggested token

    interface AutocompleteSuggestion {
        value: string;
        kind: AutocompleteKind;
        returns?: string;
        comes_after?: string[];
        comes_before?: string[];
        mode?: "replace" | "insert";
    }
    Index

    Properties

    value: string

    The suggested token

    The kind of suggested token

    returns?: string

    Optionally the type returned by this token

    comes_after?: string[]

    Optionally whether the token must follow certain types

    comes_before?: string[]

    Optionally whether the token must come before certain types

    mode?: "replace" | "insert"

    To be set only at the final suggestion phase