Skip to content

Commit b547b54

Browse files
committed
Adding regression test
1 parent da0f1e3 commit b547b54

1 file changed

Lines changed: 25 additions & 0 deletions

File tree

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
// @strictNullChecks: true
2+
// @declaration: true
3+
4+
declare function f1({ a, b }?: { a: number, b: string }): void;
5+
6+
function f2({ a, b }: { a: number, b: number } = { a: 0, b: 0 }) {
7+
a;
8+
b;
9+
}
10+
11+
// Repro from #8681
12+
13+
interface Type { t: void }
14+
interface QueryMetadata { q: void }
15+
16+
interface QueryMetadataFactory {
17+
(selector: Type | string, {descendants, read}?: {
18+
descendants?: boolean;
19+
read?: any;
20+
}): ParameterDecorator;
21+
new (selector: Type | string, {descendants, read}?: {
22+
descendants?: boolean;
23+
read?: any;
24+
}): QueryMetadata;
25+
}

0 commit comments

Comments
 (0)