effect-tree - v1.0.36
    Preparing search index...

    Function getText

    • Get the text content of a Text part.

      Parameters

      Returns string

      import {Draw} from 'effect-tree'

      const part = Draw.text('foo')

      expect(Draw.getText(part)).toBe('foo')