New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

@livemercial/api-types

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@livemercial/api-types

Shared TypeScript types for Livemercial API

latest
npmnpm
Version
1.0.0
Version published
Maintainers
1
Created
Source

@livemercial/api-types

Shared TypeScript types for the Livemercial API, enabling type-safe client usage.

Installation

npm install @livemercial/api-types
# or
bun install @livemercial/api-types

Usage

With Hono RPC Client

import { hc } from 'hono/client'
import type { AppType } from '@livemercial/api-types'

const client = hc<AppType>('https://api.livemercial.com')

// Now you have full type inference for your API calls
const response = await client.v1.index.$get()

Available Types

  • AppType - Main application type for RPC client usage
  • HTTPMethod - Supported HTTP methods
  • APIResponse<T> - Generic API response wrapper
  • APIError - Common API error structure

Development

Building

bun run build

Publishing

# Update version in package.json, then:
bun run build
npm publish

Keeping Types in Sync

This package should be updated whenever the main API structure changes. The types are currently maintained manually but could be automated with:

  • CI/CD integration to auto-publish on API changes
  • Type extraction scripts to pull types directly from the main API
  • Version pinning to match API releases

License

MIT

FAQs

Package last updated on 30 Sep 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts