--- seo: title: TinaDocs – Type Definition title: Library (API) Example last_edited: '2025-07-15T07:43:31.405Z' tocIsHidden: false --- > This example content is a random page taken from the [PlateJS documentation](https://platejs.org/docs/api/slate/location-ref). Location references are objects that keep specific locations (paths, points, or ranges) in a document synced over time as new operations are applied to the editor. You can access their `current` property at any time for the up-to-date location value. You can access their `current` property at any time for the up-to-date location value. ## Types *** #### `PathRef` Path reference objects keep a specific path in a document synced over time. Created using `editor.api.pathRef`. Path | null" } ]} /> #### `PointRef` Point reference objects keep a specific point in a document synced over time. Created using `editor.api.pointRef`. Point | null" } ]} /> #### `RangeRef` Range reference objects keep a specific range in a document synced over time. Created using `editor.api.rangeRef`. TRange | null" } ]} /> Example usage of a RangeRef: ```typescript const selectionRef = editor.api.rangeRef(editor.selection, { affinity: 'inward', }) // Operations that might change the selection Transforms.unwrapNodes(editor) // Restore the selection using the ref Transforms.select(editor, selectionRef.unref()) ``` ## `PathRefApi` *** #### `transform` Transform a path reference by an operation. ## `PointRefApi` *** #### `transform` Transform a point reference by an operation. ## `RangeRefApi` *** #### `transform` Transform a range reference by an operation.