Skip to main content
Home

Built and signed on GitHub Actions

A library for interacting with the backend and defining the backend API for personal projects.

This package works with Node.js, Deno, Browsers
This package works with Node.js
This package works with Deno
This package works with Browsers
JSR Score
100%
Published
2 days ago (2.2.8)
type alias APIResponse

Generic type for API responses in personal projects.

Provides a consistent structure for all API responses with success status, error messages, and typed data payload.

Type Parameters

  • The type of data contained in the response.

Properties

Indicates whether the API call was successful

Array of error messages if the call failed

The typed data payload returned by the API

New Ticket: Report package

Please provide a reason for reporting this package. We will review your report and take appropriate action.

Please review the JSR usage policy before submitting a report.

Add Package

deno add jsr:@aneuhold/core-ts-api-lib

Import symbol

import { type APIResponse } from "@aneuhold/core-ts-api-lib";
or

Import directly with a jsr specifier

import { type APIResponse } from "jsr:@aneuhold/core-ts-api-lib";

Add Package

pnpm i jsr:@aneuhold/core-ts-api-lib
or (using pnpm 10.8 or older)
pnpm dlx jsr add @aneuhold/core-ts-api-lib

Import symbol

import { type APIResponse } from "@aneuhold/core-ts-api-lib";

Add Package

yarn add jsr:@aneuhold/core-ts-api-lib
or (using Yarn 4.8 or older)
yarn dlx jsr add @aneuhold/core-ts-api-lib

Import symbol

import { type APIResponse } from "@aneuhold/core-ts-api-lib";

Add Package

vlt install jsr:@aneuhold/core-ts-api-lib

Import symbol

import { type APIResponse } from "@aneuhold/core-ts-api-lib";

Add Package

npx jsr add @aneuhold/core-ts-api-lib

Import symbol

import { type APIResponse } from "@aneuhold/core-ts-api-lib";