Closed Sammons closed 8 years ago
I think below is the expected behavior:
export declare function runSampleBreaks<A, B, C, D, E>(a: bluebird<A>, b?: bluebird<B>, c?: bluebird<C>, d?: bluebird<D>, e?: bluebird<E>): Promise<(<T>(f: (a: A, b?: B, c?: C, d?: D, e?: E) => T): T)>;
TypeScript Version: Version 1.8.2 Config
Source
Generated Types
Expected behavior: Code that compiles generates types that compile, even with generics ;)
Actual behavior: The only way to get a type to generate a valid type declaration was to finagle it by adding
& {}
to an explicit typing. Sample of what didn't work and what does work are above. I'm not sure what triggered this behavior.