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:
parent
beff5c2fe1
commit
194cd2eba8
8
index.d.ts
vendored
8
index.d.ts
vendored
@ -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 {
|
||||
|
Loading…
x
Reference in New Issue
Block a user