interface CustomObject = Record<string, any>
<T extends CustomObject>(argument: T = {}) => argument
^^^^^^^^^^^^^
TS2322: The type '{}' cannot be assigned to 'T'. '{}' can be assigned to the constraint of type 'T', but a different subtype of constraint 'Record<string, any>' could be instantiated with 'T'