Renamed test.

This commit is contained in:
Daniel Rosenwasser 2018-09-05 11:50:47 -07:00
parent cd399fb49b
commit d989e10c49
2 changed files with 18 additions and 10 deletions

View file

@ -1,10 +0,0 @@
interface IDirectiveLinkFn<TScope> {
(scope: TScope): void;
}
interface IDirectivePrePost<TScope> {
pre?: IDirectiveLinkFn<TScope>;
post?: IDirectiveLinkFn<TScope>;
}
export let blah: IDirectiveLinkFn<number> | IDirectivePrePost<number> = (x: string) => {}

View file

@ -0,0 +1,18 @@
interface ConstructableA {
new(): { somePropA: any };
}
interface IDirectiveLinkFn<TScope> {
(scope: TScope): void;
}
interface IDirectivePrePost<TScope> {
pre?: IDirectiveLinkFn<TScope>;
post?: IDirectiveLinkFn<TScope>;
}
export let blah: IDirectiveLinkFn<number> | ConstructableA | IDirectivePrePost<number> = (x: string) => {}
export let ctor: IDirectiveLinkFn<number> | ConstructableA | IDirectivePrePost<number> = class {
someUnaccountedProp: any;
}