Skip to content

using imports in a file prevents references being able to find any type info #9

@vjpr

Description

@vjpr

a.ts

/// <reference path="./d.ts/DefinitelyTyped/underscore/underscore.d.ts" />
import _ = require('underscore')

class Mapper {}

b.ts

/// <reference path="./a.ts" />

var a: Mapper;
> error TS2095: Could not find symbol 'Mapper'.

Removing the import and everything works as expected.

Changing the import to var _ = require('underscore') works too but without type-checking.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions