Use generic for the transaction function (#29377)
Use generic for the transaction function (#29377)


dsebastien/DefinitelyTyped,georgemarshall/DefinitelyTyped,magny/DefinitelyTyped,dsebastien/DefinitelyTyped,georgemarshall/DefinitelyTyped,markogresak/DefinitelyTyped,borisyankov/DefinitelyTyped,borisyankov/DefinitelyTyped,georgemarshall/DefinitelyTyped,mcliment/DefinitelyTyped,magny/DefinitelyTyped,georgemarshall/DefinitelyTyped