UNPKG

546 BTypeScriptView Raw
1import { Module } from '@nuxt/types';
2import { Options, Filter } from 'http-proxy-middleware';
3
4declare type ProxyContext = Filter | Options;
5declare type ProxyOptionsObject = {
6 [target: string]: Options;
7};
8declare type ProxyOptionsArray = Array<[ProxyContext, Options?] | Options | string>;
9declare type NuxtProxyOptions = ProxyOptionsObject | ProxyOptionsArray;
10
11declare module '@nuxt/types' {
12 interface Configuration {
13 proxy?: NuxtProxyOptions;
14 }
15}
16declare const proxyModule: Module<Options>;
17
18export default proxyModule;