Converts a Plugin type to its corresponding Database type.
Uses direct property access (P['components']) instead of conditional inference
(P extends Plugin<infer CS, ...> ? CS : never) to avoid expensive 8-way type
expansion that amplifies TS7056 serialization overflow in deep extends chains.
Converts a Plugin type to its corresponding Database type. Uses direct property access (P['components']) instead of conditional inference (P extends Plugin<infer CS, ...> ? CS : never) to avoid expensive 8-way type expansion that amplifies TS7056 serialization overflow in deep extends chains.