Expected
The included types to match the previously typed return type string.
Actual
The new types returns string | undefined which requires substantial code rewrites as it needs to handle undefined values everywhere.
Notes
The new types can be made to match the old ones. If the are redeclared and exported. This solution is a fair bit complex.