@brickninjaapi/fetch
v0.0.19
Published
Tiny wrapper around fetch that returns type-safe responses
Maintainers
Readme
@brickninjaapi/fetch
This package provides a tiny wrapper around native fetch to call the Brick Ninja API that returns typesafe responses.
Usage
import { fetchBrickNinjaApi } from '@brickninjaapi/fetch';
const item = await fetchBrickNinjaApi('/v1/items/1234');
// -> { id: number, name: string, ... }Installation
npm i @brickninjaapi/fetchContributing
See parent readme.
License
Licensed under the MIT License.
