Fixing optional site issue.

This commit is contained in:
Dessalines 2023-09-06 08:26:00 -04:00
parent db6f063259
commit 5c81491147
3 changed files with 5 additions and 3 deletions

View file

@ -24,3 +24,5 @@ find src/types -type f -name '*.ts' -exec sed -i 's/bigint/number/g' {} +
node putTypesInIndex.js node putTypesInIndex.js
prettier -w src/types

View file

@ -1,8 +1,8 @@
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. // 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 { export interface AddAdmin {
local_user_id: LocalUserId; person_id: PersonId;
added: boolean; added: boolean;
auth: string; auth: string;
} }

View file

@ -6,5 +6,5 @@ import type { Site } from "./Site";
export interface InstanceBlockView { export interface InstanceBlockView {
person: Person; person: Person;
instance: Instance; instance: Instance;
site: Site | null; site?: Site;
} }