Fix types

This commit is contained in:
Owen
2026-07-31 16:50:35 -04:00
parent e5ac6ec7cd
commit 9d581f3897
14 changed files with 44 additions and 35 deletions
+3 -1
View File
@@ -1,5 +1,7 @@
import { SiteResource } from "@server/db";
export type SiteResourceDestinationInput = {
mode: "host" | "cidr" | "http" | "ssh";
mode: SiteResource["mode"];
destination: string | null;
destinationPort: number | null;
scheme: "http" | "https" | null;
+4 -3
View File
@@ -1,9 +1,10 @@
import { z } from "zod";
import type { InternalResourceRow } from "@app/components/PrivateResourcesTable";
import type { PrivateResourceRow } from "@app/components/PrivateResourcesTable";
import { SiteResource } from "@server/db";
export type PrivateResourceMode = "host" | "cidr" | "http" | "ssh";
export type PrivateResourceMode = SiteResource["mode"];
export type SiteResourceData = InternalResourceRow & {
export type SiteResourceData = PrivateResourceRow & {
enabled: boolean;
};