docs/api/slate/location.cn.mdx
位置(Location)可以是路径(Path)、点(Point)或范围(Range)。方法通常会接受位置参数,而不仅限于路径、点或范围。
type TLocation = Path | Point | TRange
LocationApiisAt检查一个值是否实现了At接口。
isLocation检查一个值是否实现了TLocation接口。
isSpan检查一个值是否实现了Span接口。
TLocationLocation是TLocation的类型别名。
Span