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.
A library for interacting with the backend and defining the backend API for personal projects.
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.
Add Package
deno add jsr:@aneuhold/core-ts-api-lib
Import symbol
import { type APIResponse } from "@aneuhold/core-ts-api-lib";
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
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
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";