---
title: Span API
slug: docs/github-example/span-api
docTags: 
createdAt: 2026-05-05T15:31:38.496Z
---

A `Span` is a low-level way to refer to a `Range` using `Element` as the end points instead of a `Point` which requires the use of leaf text nodes.

```typescript
type Span = [Path, Path]
```

- [Static methods](docId\:q2P5qyDQOMNzO12e7CKRt)
  - [Check methods](docId\:q2P5qyDQOMNzO12e7CKRt)

## Static Methods

### Check Methods

### `Span.isSpan(value: any) => value is Span`

Check if a `value` implements the `Span` interface.
