Home Reference Source Repository
import {RestElement} from 'esast/src/ast.js'
public class | source

RestElement

Extends:

NodePattern → RestElement

Can be the last argument to a FunctionExpression/FunctionDeclaration or go at the end of an ArrayPattern.

Constructor Summary

Public Constructor
public

constructor(argument: *)

Member Summary

Public Members
public

Inherited Summary

From class Node
public get

type: *

For compatibility with other AST representations, all Node instances have a 'type' property that is the name of that type.
public

toJSON(): *

Convert to JSON.
public

toString(): *

Public Constructors

public constructor(argument: *) source

Params:

NameTypeAttributeDescription
argument *

Public Members

public argument: Pattern source