UNPKG

json-server

Version:

[![Node.js CI](https://github.com/typicode/json-server/actions/workflows/node.js.yml/badge.svg)](https://github.com/typicode/json-server/actions/workflows/node.js.yml)

9 lines (8 loc) 331 B
import { App } from '@tinyhttp/app'; import { Low } from 'lowdb'; import { Data } from './service.js'; export type AppOptions = { logger?: boolean; static?: string[]; }; export declare function createApp(db: Low<Data>, options?: AppOptions): App<import("@tinyhttp/app").Request, import("@tinyhttp/app").Response<unknown>>;