Skip to content
Source
Sign inSign up
pingdotgg/t3code
Open History to see the last commit

CodexSetupSection.logic.ts

8 lines240 Bytes

1export function readCodexSetupMode(config: unknown): "managed" | "existing" {
2 return config !== null &&
3 typeof config === "object" &&
4 "setupMode" in config &&
5 config.setupMode === "managed"
6 ? "managed"
7 : "existing";
8}