UNPKG

2.09 kBTypeScriptView Raw
1declare module 'connect' {
2 const connect: () => any
3 export = connect
4}
5
6declare module 'cors' {
7 function cors(options: any): any
8 export = cors
9}
10
11declare module 'selfsigned' {
12 export function generate(attrs: any, options: any, done?: any): any
13}
14
15declare module 'http-proxy' {
16 const proxy: any
17 export = proxy
18}
19
20declare module 'connect-history-api-fallback' {
21 const plugin: any
22 export = plugin
23}
24
25declare module 'launch-editor-middleware' {
26 const plugin: any
27 export = plugin
28}
29
30declare module 'postcss-load-config' {
31 import type { Plugin, ProcessOptions } from 'postcss'
32 function load(
33 inline: any,
34 root: string
35 ): Promise<{
36 options: ProcessOptions
37 plugins: Plugin[]
38 }>
39 export = load
40}
41
42declare module 'postcss-import' {
43 import type { Plugin } from 'postcss'
44 const plugin: (options: {
45 resolve: (
46 id: string,
47 basedir: string,
48 importOptions: any
49 ) => string | string[] | Promise<string | string[]>
50 nameLayer: (index: number, rootFilename: string) => string
51 }) => Plugin
52 export = plugin
53}
54
55declare module 'postcss-modules' {
56 import type { Plugin } from 'postcss'
57 const plugin: (options: any) => Plugin
58 export = plugin
59}
60
61declare module '@rollup/plugin-dynamic-import-vars' {
62 import type { Plugin } from 'rollup'
63 import type { BaseNode } from 'estree'
64
65 interface Options {
66 include?: string | RegExp | (string | RegExp)[]
67 exclude?: string | RegExp | (string | RegExp)[]
68 warnOnError?: boolean
69 }
70
71 const p: (o?: Options) => Plugin
72 export default p
73 export function dynamicImportToGlob(
74 ast: BaseNode,
75 source: string
76 ): null | string
77}
78
79declare module 'rollup-plugin-web-worker-loader' {
80 import type { Plugin } from 'rollup'
81
82 interface Options {
83 targetPlatform?: string
84 pattern?: RegExp
85 extensions?: string[]
86 sourcemap?: boolean
87 inline?: boolean
88 }
89
90 const p: (o?: Options) => Plugin
91 export default p
92}
93
94// LESS' types somewhat references this which doesn't make sense in Node,
95// so we have to shim it
96declare interface HTMLLinkElement {}