Skip to content

Rename open() name parameter to id and restructure Op type #16

Description

@cowboyd

From spec review (PR #5, line 217): the first parameter to open() is called name but it functions as an element identity for the layout engine (Clay calls it Clay_ElementId).

Rename to id and restructure the Op type so directives are shaped like:

{ directive: OPEN_ELEMENT, id: string, ... }
{ directive: TEXT, ... }
{ directive: CLOSE_ELEMENT }

This aligns the TypeScript API with both Clay's terminology and the spec's directive model.

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions