We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent decec4d commit d9d5e3aCopy full SHA for d9d5e3a
tests/cases/conformance/types/stringLiteral/stringLiteralTypesOverloads05.ts
@@ -0,0 +1,13 @@
1
+// @declaration: true
2
+
3
+interface Animal { animal: {} };
4
+interface Dog extends Animal { dog: {} }
5
+interface Cat extends Animal { cat: {} }
6
+interface Moose extends Animal { moose: {} }
7
8
+function doThing(x: "dog"): Dog;
9
+function doThing(x: "cat"): Cat;
10
+function doThing(x: string): Animal;
11
+function doThing(x: string, y?: string): Moose {
12
+ return undefined;
13
+}
0 commit comments