I'm trying to wrap up a dynamic import so that it is easier for folks to get consistent predictable behaviour from. I Cannot work out the argument type for import; as everything says it is a string, but it clearly has a type, which the compiler knows to check if can be included. I just dont want to lose that in making others lives easier.
playground link I think this may be that the import type functionality is not exported
The Playground lets you write TypeScript or JavaScript online in a safe and sharable way.