🚀 feat(index.d.ts): add copy method to the global declaration to enable file or directory copying
All checks were successful
continuous-integration/drone/push Build is passing

The copy method is added to the global declaration in order to provide a convenient way to copy files or directories. This method takes the source path and destination path as parameters and performs the copy operation. This addition enhances the functionality of the global declaration and allows for easier file management within the application.
This commit is contained in:
Sebastian Frank 2024-01-09 14:25:14 +00:00
parent beff5c2fe1
commit 194cd2eba8
Signed by: apairon
SSH Key Fingerprint: SHA256:lYVOnGlR42QHj7wuqfFgGw8cKbfyZUpzeRDGVBBAHQU

8
index.d.ts vendored
View File

@ -248,6 +248,14 @@ declare global {
* @param path
*/
remove(path: string): void
/**
* copy file or directory
*
* @param src
* @param dest
*/
copy(src: string, dest: string): void
}
interface TplPackage {