From 22c31716fdf8fde28a7ec57fab1820227b004adb Mon Sep 17 00:00:00 2001 From: naskya Date: Fri, 28 Jun 2024 06:42:26 +0900 Subject: [PATCH] chore (backend-rs): use --dts-header option --- packages/backend-rs/index.d.ts | 7 ++++++- packages/backend-rs/package.json | 2 +- packages/backend/src/@types/backend-rs.d.ts | 1 - 3 files changed, 7 insertions(+), 3 deletions(-) delete mode 100644 packages/backend/src/@types/backend-rs.d.ts diff --git a/packages/backend-rs/index.d.ts b/packages/backend-rs/index.d.ts index 98e717eb83..e0602c472b 100644 --- a/packages/backend-rs/index.d.ts +++ b/packages/backend-rs/index.d.ts @@ -1,5 +1,10 @@ /* auto-generated by NAPI-RS */ -/* eslint-disable */ +/* Do NOT edit this file manually */ + +type DateTimeWithTimeZone = Date; + +type Json = any; + export interface AbuseUserReport { id: string createdAt: DateTimeWithTimeZone diff --git a/packages/backend-rs/package.json b/packages/backend-rs/package.json index e96bfc5ef7..7b5ad60703 100644 --- a/packages/backend-rs/package.json +++ b/packages/backend-rs/package.json @@ -11,6 +11,6 @@ }, "scripts": { "build": "napi build --features napi --no-const-enum --platform --release --output-dir ./built/", - "build:debug": "napi build --features napi --no-const-enum --platform --output-dir ./built/" + "build:debug": "napi build --features napi --no-const-enum --platform --output-dir ./built/ --dts-header '/* auto-generated by NAPI-RS */\n/* Do NOT edit this file manually */\n\ntype DateTimeWithTimeZone = Date;\n\ntype Json = any;\n\n'" } } diff --git a/packages/backend/src/@types/backend-rs.d.ts b/packages/backend/src/@types/backend-rs.d.ts deleted file mode 100644 index c1a6cc71be..0000000000 --- a/packages/backend/src/@types/backend-rs.d.ts +++ /dev/null @@ -1 +0,0 @@ -type DateTimeWithTimeZone = Date;