feat: wire up planty with nodarium/app
Some checks failed
📊 Benchmark the Runtime / release (push) Successful in 3m55s
🚀 Lint & Test & Deploy / release (push) Failing after 56s

This commit is contained in:
2026-04-20 01:08:52 +02:00
parent 168e6fcc19
commit 4de15b19c8
10 changed files with 394 additions and 37 deletions

View File

@@ -28,6 +28,10 @@ export const AppSettingTypes = {
label: 'Center Camera',
value: true
},
clippy: {
type: 'button',
label: '🌱 Open Planty'
},
nodeInterface: {
title: 'Node Interface',
backgroundType: {
@@ -109,9 +113,8 @@ export const AppSettingTypes = {
}
} as const;
type SettingsToStore<T> = T extends { type: 'button' } ? () => void
: T extends { value: infer V } ? V extends readonly string[] ? V[number]
: V
type SettingsToStore<T> = T extends { value: infer V } ? V extends readonly string[] ? V[number]
: V
: T extends object ? {
-readonly [K in keyof T as T[K] extends object ? K : never]: SettingsToStore<T[K]>;
}