diff --git a/copy_generated_types_from_lemmy.sh b/copy_generated_types_from_lemmy.sh index 58e4091..e69d485 100755 --- a/copy_generated_types_from_lemmy.sh +++ b/copy_generated_types_from_lemmy.sh @@ -24,3 +24,5 @@ find src/types -type f -name '*.ts' -exec sed -i 's/bigint/number/g' {} + node putTypesInIndex.js +prettier -w src/types + diff --git a/src/types/AddAdmin.ts b/src/types/AddAdmin.ts index e9c8a59..23de2dd 100644 --- a/src/types/AddAdmin.ts +++ b/src/types/AddAdmin.ts @@ -1,8 +1,8 @@ // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. -import type { LocalUserId } from "./LocalUserId"; +import type { PersonId } from "./PersonId"; export interface AddAdmin { - local_user_id: LocalUserId; + person_id: PersonId; added: boolean; auth: string; } diff --git a/src/types/InstanceBlockView.ts b/src/types/InstanceBlockView.ts index bd5358f..38087ca 100644 --- a/src/types/InstanceBlockView.ts +++ b/src/types/InstanceBlockView.ts @@ -6,5 +6,5 @@ import type { Site } from "./Site"; export interface InstanceBlockView { person: Person; instance: Instance; - site: Site | null; + site?: Site; }