chore (backend-rs): use --dts-header option
This commit is contained in:
parent
d88ac98e7f
commit
22c31716fd
3 changed files with 7 additions and 3 deletions
7
packages/backend-rs/index.d.ts
vendored
7
packages/backend-rs/index.d.ts
vendored
|
@ -1,5 +1,10 @@
|
||||||
/* auto-generated by NAPI-RS */
|
/* auto-generated by NAPI-RS */
|
||||||
/* eslint-disable */
|
/* Do NOT edit this file manually */
|
||||||
|
|
||||||
|
type DateTimeWithTimeZone = Date;
|
||||||
|
|
||||||
|
type Json = any;
|
||||||
|
|
||||||
export interface AbuseUserReport {
|
export interface AbuseUserReport {
|
||||||
id: string
|
id: string
|
||||||
createdAt: DateTimeWithTimeZone
|
createdAt: DateTimeWithTimeZone
|
||||||
|
|
|
@ -11,6 +11,6 @@
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"build": "napi build --features napi --no-const-enum --platform --release --output-dir ./built/",
|
"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'"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
1
packages/backend/src/@types/backend-rs.d.ts
vendored
1
packages/backend/src/@types/backend-rs.d.ts
vendored
|
@ -1 +0,0 @@
|
||||||
type DateTimeWithTimeZone = Date;
|
|
Loading…
Reference in a new issue