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