---
title: "FetchFunction | Client js | Api client"
description: "Documentation for MapTiler Client"
---

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

# Type Alias FetchFunction

FetchFunction: (  
    input: RequestInfo | URL,  
    init?: RequestInit,  
) \=> Promise<Response\>

#### Type Declaration

-   -   (input: RequestInfo | URL, init?: RequestInit): Promise<Response\>
    -   #### Parameters
        
        -   input: RequestInfo | URL
        -   `Optional`init: RequestInit
        
        #### Returns Promise<Response\>
        

-   Defined in [config.ts:11](https://github.com/maptiler/maptiler-client-js/blob/f88659ae276c959a754e4c0f3b5c2aae1f483caa/src/config.ts#L11)
