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

    Function isText

    • Type guard for the Text Part.

      Parameters

      Returns self is Text

      import {Draw} from 'effect-tree'

      const part1 = Draw.text('hello')
      const part2 = Draw.empty

      expect(Draw.isText(part1), 'text').toBe(true)
      expect(Draw.isText(part2), 'not text').toBe(false)