From 194cd2eba86e20ab331fb4b2d6fe7a3838650c77 Mon Sep 17 00:00:00 2001 From: Sebastian Frank Date: Tue, 9 Jan 2024 14:25:14 +0000 Subject: [PATCH] =?UTF-8?q?=F0=9F=9A=80=20feat(index.d.ts):=20add=20copy?= =?UTF-8?q?=20method=20to=20the=20global=20declaration=20to=20enable=20fil?= =?UTF-8?q?e=20or=20directory=20copying=20The=20copy=20method=20is=20added?= =?UTF-8?q?=20to=20the=20global=20declaration=20in=20order=20to=20provide?= =?UTF-8?q?=20a=20convenient=20way=20to=20copy=20files=20or=20directories.?= =?UTF-8?q?=20This=20method=20takes=20the=20source=20path=20and=20destinat?= =?UTF-8?q?ion=20path=20as=20parameters=20and=20performs=20the=20copy=20op?= =?UTF-8?q?eration.=20This=20addition=20enhances=20the=20functionality=20o?= =?UTF-8?q?f=20the=20global=20declaration=20and=20allows=20for=20easier=20?= =?UTF-8?q?file=20management=20within=20the=20application.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- index.d.ts | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/index.d.ts b/index.d.ts index 24b3a1b..09ede82 100644 --- a/index.d.ts +++ b/index.d.ts @@ -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 {