Interface ExitMessage

Event emitted when MiniZinc exits.

If solving/compilation is cancelled with the cancel() method, then this event is still emitted, but with a null value for the code.

interface ExitMessage {
    code: null | number;
    message?: string;
    type: "exit";
}

Properties

Properties

code: null | number

Exit code, or null if the process was interrupted

message?: string

Possible message if there was an error

type: "exit"

Message type