21 lines
508 B
TypeScript
21 lines
508 B
TypeScript
|
// @declaration: true
|
||
|
// @filename: this.ts
|
||
|
import * as me from "./this";
|
||
|
export interface Things<P, T> {
|
||
|
p: P;
|
||
|
t: T;
|
||
|
}
|
||
|
export function make<P, CTor>(x: { new (): CTor & {props: P} }): Things<P, CTor> {
|
||
|
return null as any;
|
||
|
}
|
||
|
|
||
|
export interface Props {
|
||
|
}
|
||
|
|
||
|
export default class MyComponent {
|
||
|
props: Props;
|
||
|
}
|
||
|
export namespace Something {
|
||
|
let MyComponent = 2; // Shadow declaration, so symbol is only usable via the self-import
|
||
|
export const create = make(me.default);
|
||
|
}
|