Add type definition for third-party packages that do not have them.

This commit is contained in:
Bauke 2023-04-06 10:51:19 +02:00
parent 940367fc49
commit adef8fc894
Signed by: Bauke
GPG Key ID: C1C0F29952BCF558
1 changed files with 15 additions and 0 deletions

15
source/packages.d.ts vendored Normal file
View File

@ -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;
}