fix: tighten Teams and device typing

This commit is contained in:
Peter Steinberger
2026-04-04 19:38:43 +09:00
parent 75fb29ffe6
commit 87d840e9ee
2 changed files with 10 additions and 5 deletions

View File

@@ -29,7 +29,7 @@ import type { GatewayRequestHandlers } from "./types.js";
const DEVICE_TOKEN_ROTATION_DENIED_MESSAGE = "device token rotation denied";
type DeviceTokenRotateTarget = {
pairedDevice: Awaited<ReturnType<typeof getPairedDevice>>;
pairedDevice: NonNullable<Awaited<ReturnType<typeof getPairedDevice>>>;
normalizedRole: string;
};