@r47onfire/nebula - v0.0.0
    Preparing search index...

    Variable joinedConst

    joined: <R extends string = never, P extends string = never>(
        joiner: GrammarCombinator<R, P>,
        bodyNode: GrammarCombinator<R, P>,
        requireTwo: boolean,
        allowTrailingJoiner: boolean,
    ) => GrammarCombinator<NoInfer<R>, NoInfer<P>> = ...

    Matches node separated by joiner (node, node joiner node, ...), keeping elements and separators in one flat result.

    Type Declaration

      • <R extends string = never, P extends string = never>(
            joiner: GrammarCombinator<R, P>,
            bodyNode: GrammarCombinator<R, P>,
            requireTwo: boolean,
            allowTrailingJoiner: boolean,
        ): GrammarCombinator<NoInfer<R>, NoInfer<P>>
      • Type Parameters

        • R extends string = never
        • P extends string = never

        Parameters

        • joiner: GrammarCombinator<R, P>
        • bodyNode: GrammarCombinator<R, P>
        • requireTwo: boolean

          Requires at least two node elements (and one joiner in between) if true.

        • allowTrailingJoiner: boolean

          Permits a joiner at the end (e.g. a trailing comma).

        Returns GrammarCombinator<NoInfer<R>, NoInfer<P>>