Skip to content

deep validation for deep namespaces #119

Closed
@benmosher

Description

Given:

// foo.js
export const x = "x"
           , y = "y"

// bar.js
export * as foo from './foo'

report for the following:

import * as bar from './bar'
console.log(bar.foo.z) // "z non-existent in deep import './foo.js'"

import { foo } from './bar'
console.log(foo.w) // same deal
  • report deep file with simple path relative to current source, if relative paths all the way down
    i.e. ./foo.js as above, not /Users/ben/code/project/src/foo.js

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions