Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 5 additions & 4 deletions apps/roam/src/components/settings/utils/zodSchema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -285,10 +285,11 @@ const staticTopLevelEntries = [
},
];

export const TOP_LEVEL_BLOCK_PROP_KEYS = {
featureFlags: "Feature Flags",
global: "Global",
} as const;
export const TOP_LEVEL_BLOCK_PROP_KEYS = Object.fromEntries(
staticTopLevelEntries.map((e) => [e.propKey, e.key]),
) as {
readonly [E in (typeof staticTopLevelEntries)[number] as E["propKey"]]: E["key"];
};

export const getTopLevelBlockPropsConfig = () => [
...staticTopLevelEntries,
Expand Down
Loading