export function omit < T , K extends keyof T > ( obj , keys ) { const result = { } ; for ( const [ key , value ] of Object . entries ( obj ) as any ) { if ( ! keys . includes ( key ) ) { result [ key ] = value ; } } return result as Omit < T , K > ; }