deno icon indicating copy to clipboard operation
deno copied to clipboard

Not confuse with export and import when importing a function

Open hapaxlife opened this issue 1 year ago • 0 comments

Could the compiler warn us when we type

// We type export instead of import
export { toto } from "./deps.ts" 

function (){
..
toto() // => say doesn't exists => can warn us of the confusion btw export and import
...
}

and say instead : "you declare an export => do you want import instead ?"

hapaxlife avatar Jan 25 '24 14:01 hapaxlife