aurelia / template-lint

Sanity check of Aurelia-flavor template HTML
Apache License 2.0
56 stars 17 forks source link

Support for re-exported types #112

Closed tdamir closed 7 years ago

tdamir commented 7 years ago

item.ts

export class Item {
  prop: string;
}

common.ts

export * from './item'

page.ts

import {Item} from "./common";
export class PageViewModel {
    items: Item[];
}

page.html

<template>
   <div repeat.for="item in items">
    ${item.propN}
   </div>
</template>

It correctly reports error if we import the type from item.ts. It should report an error if we import the type from common.ts too.

MeirionHughes commented 7 years ago

published to 0.9.11