TypeScript/tests/cases/compiler/nounusedTypeParameterConstraint.ts

9 lines
285 B
TypeScript

// @noUnusedLocals: true
// @noUnusedParameters:true
//@filename: bar.ts
export interface IEventSourcedEntity { }
//@filename: test.ts
import { IEventSourcedEntity } from "./bar";
export type DomainEntityConstructor<TEntity extends IEventSourcedEntity> = { new(): TEntity; };