diff --git a/src/schema/nodes.ts b/src/schema/nodes.ts index 8cae1a8..5c006d2 100644 --- a/src/schema/nodes.ts +++ b/src/schema/nodes.ts @@ -74,7 +74,7 @@ export class Root extends Node { this.addChild(new class extends Node { serialize() { return `\ -type Configify = T extends object +type Configify = [T] extends [object] ? { [P in keyof T]: Configify; } & Gettable & Listenable : Gettable & Settable & Listenable;`; }