---
title: "RefCounted | JavaScript maps SDK"
description: "Documentation for MapTiler SDK"
---

> For AI agents: a documentation index is available at [/llms.txt](https://docs.maptiler.com/llms.txt). Markdown versions of all pages are available by appending .md to any URL.

# Interface RefCounted

interface RefCounted {  
    [ref](#ref-1)(): this;  
    [unref](#unref-1)(): this;  
}

#### Hierarchy ([View Summary](https://docs.maptiler.com/sdk-js/api-reference/hierarchy/#Externals.RefCounted))

-   RefCounted
    -   [Timeout](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.Timeout/)
    -   [Timer](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.Timer/)

##### Index

### Methods[](#methods)

[ref](#ref) [unref](#unref)

## Methods[](#methods-1)

### ref[](#ref)

-   ref(): this[](#ref-1)
    
    #### Returns this
    

### unref[](#unref)

-   unref(): this[](#unref-1)
    
    #### Returns this
