When exporting a function and type from the library in the convertToUpper.ts
file, I have the following code:
export function Sample() {
console.log('sample')
}
export type IProp = {
name: string
age: number
}
The index.ts file in my lib looks like this:
export { IProp, Sample } from './helpers/convertToUpper'
exporting both.
However, when attempting to import them as below:
import {ConvertToUpper, IProp } from "utils";
I encounter the error message:
Module '"utils"' has no exported member 'ConvertToUpper'. Did you mean to use 'import ConvertToUpper from "utils"' instead?ts(2614)