Allow resolveWeak to return a string (#23270)
Allow resolveWeak to return a string (#23270)

Handles cases where module ids are hashed.
arusakov/DefinitelyTyped,AgentME/DefinitelyTyped,borisyankov/DefinitelyTyped,borisyankov/DefinitelyTyped,mcliment/DefinitelyTyped,chrootsu/DefinitelyTyped,georgemarshall/DefinitelyTyped,magny/DefinitelyTyped,dsebastien/DefinitelyTyped,markogresak/DefinitelyTyped,rolandzwaga/DefinitelyTyped,dsebastien/DefinitelyTyped,zuzusik/DefinitelyTyped,georgemarshall/DefinitelyTyped,rolandzwaga/DefinitelyTyped,AgentME/DefinitelyTyped,AgentME/DefinitelyTyped,chrootsu/DefinitelyTyped,one-pieces/DefinitelyTyped,georgemarshall/DefinitelyTyped,arusakov/DefinitelyTyped,laurentiustamate94/DefinitelyTyped,zuzusik/DefinitelyTyped,arusakov/DefinitelyTyped,magny/DefinitelyTyped,georgemarshall/DefinitelyTyped,AgentME/DefinitelyTyped,zuzusik/DefinitelyTyped