Open adelin-b opened 1 year ago
You can use this as a workaround for now:
import type editly from 'editly';
const getEditly = async (): Promise<typeof editly> => {
const lib = await (eval(`import('editly')`) as Promise<{
default: typeof import('editly');
}>);
return lib.default;
};
Note: use of type is very important
const editly = await getEditly();
editly(...);
Hello, currently whenever I try to import editly in typescript here is what happen