import { flex } from './flex' ; import { layout } from './layout' ; import { space } from './space' ; const styleProps = { ... flex , ... layout , ... space , } ; example export function safelySpreadProps < T extends object > ( props ) { const safeProps = { } as T ; for ( const key in props ) { if ( ! ( key in styleProps ) ) { safeProps [ key as keyof T ] = props [ key as keyof T ] ; } } return safeProps ; }