MessageSyntaxError.(constructor)

This API is provided as a beta preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.

Constructs a new instance of the MessageSyntaxError class

Signature:

constructor(type: typeof MessageSyntaxError.prototype.type, start: number, end: number, expected?: string);

Parameters

Parameter Type Description
type typeof MessageSyntaxError.prototype.type  
start number  
end number  
expected string (Optional)