Skip to content

docs: add reusable TypeScript law-array patterns #3

Description

@luantaraschi

Why

Teams will usually share law collections across generated tests, trace verification, and live monitors. The docs should show a typed reusable definition without hiding the serializable AST.

Scope

  • Add an example using defineLaws.
  • Show reuse in at least two execution modes.
  • Keep the example dependency-free and small.
  • Avoid framework-specific helpers.

Done when

The snippet type-checks under the supported TypeScript baseline.

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

    documentationImprovements or additions to documentationgood first issueGood for newcomers

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions