Add type definition for third-party packages that do not have them.
This commit is contained in:
parent
940367fc49
commit
adef8fc894
|
@ -0,0 +1,15 @@
|
|||
// Type definitions for third-party packages.
|
||||
|
||||
declare module 'esbuild-copy-static-files' {
|
||||
import {type cpSync} from 'node:fs';
|
||||
import {type Plugin} from 'esbuild';
|
||||
|
||||
type CopySyncParameters = Parameters<typeof cpSync>;
|
||||
|
||||
type Options = {
|
||||
src?: CopySyncParameters[0];
|
||||
dest?: CopySyncParameters[1];
|
||||
} & CopySyncParameters[2];
|
||||
|
||||
export default function (options: Options): Plugin;
|
||||
}
|
Loading…
Reference in New Issue