@rebrickableapi/fetch
v0.0.12
Published
Tiny wrapper around fetch that returns type-safe responses
Downloads
360
Maintainers
Readme
@rebrickableapi/fetch
This package provides a tiny wrapper around native fetch to call the Rebrickable API that returns typesafe responses.
Usage
import { fetchRebrickableAPI } from '@rebrickableapiapi/fetch';
const item = await fetchRebrickableAPI('/api/v3/colors');
// -> { id: number, name: string, ... }Installation
npm i @rebrickableapi/fetchContributing
See parent readme.
License
Licensed under the MIT License.
