Skip to content

Instantly share code, notes, and snippets.

@ConnorRigby
Created December 22, 2016 21:04
Show Gist options
  • Save ConnorRigby/e55a31fe05af10341bf3bb27301bcdbc to your computer and use it in GitHub Desktop.
Save ConnorRigby/e55a31fe05af10341bf3bb27301bcdbc to your computer and use it in GitHub Desktop.
add name into sequence args

Changes

here is the old interface

export interface Sequence {
  kind: "sequence";
  args: {
    version: number;
  };
  comment?: string | undefined;
  body?: (MoveAbsolute
           | MoveRelative
           | WritePin
           | ReadPin
           | Wait
           | SendMessage
           | Execute
           | If)[] | undefined;
}

i just want to add the name of the sequence into the args

export interface Sequence {
  kind: "sequence";
  args: {
    version: number;
    name: string;
  };
  comment?: string | undefined;
  body?: (MoveAbsolute
           | MoveRelative
           | WritePin
           | ReadPin
           | Wait
           | SendMessage
           | Execute
           | If)[] | undefined;
}

this will make logging sequences easier inside the sequencer

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment