mirror of
https://github.com/vuejs/vue-cli.git
synced 2026-01-12 10:09:42 -06:00
22 lines
477 B
TypeScript
22 lines
477 B
TypeScript
import { Application } from 'express'
|
|
|
|
declare function createJSONServer(
|
|
/**
|
|
* Either a path to a json file (e.g. 'db.json') or an object in memory
|
|
*
|
|
* Default:
|
|
*{
|
|
* 'posts': [
|
|
* { 'id': 1, 'title': 'json-server', 'author': 'typicode' }
|
|
* ],
|
|
* 'comments': [
|
|
* { 'id': 1, 'body': 'some comment', 'postId': 1 }
|
|
* ],
|
|
* 'profile': { 'name': 'typicode' }
|
|
*}
|
|
*/
|
|
data?: string | object,
|
|
): Application
|
|
|
|
export = createJSONServer
|