---
title: "FetchFunction | 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.

# Type Alias FetchFunction

FetchFunction: (  
    input: [RequestInfo](https://docs.maptiler.com/sdk-js/api-reference/types/Externals.RequestInfo/) | URL,  
    init?: RequestInit,  
) \=> Promise<Response\>

#### Type Declaration

-   -   (input: [RequestInfo](https://docs.maptiler.com/sdk-js/api-reference/types/Externals.RequestInfo/) | URL, init?: RequestInit): Promise<Response\>
    -   #### Parameters
        
        -   input: [RequestInfo](https://docs.maptiler.com/sdk-js/api-reference/types/Externals.RequestInfo/) | URL
        -   `Optional`init: RequestInit
        
        #### Returns Promise<Response\>
