File: app.ts

package info (click to toggle)
node-ts-loader 9.4.2-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 10,940 kB
  • sloc: javascript: 7,230; makefile: 4
file content (11 lines) | stat: -rw-r--r-- 189 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
interface AType { a: string; }
interface BType extends AType { b: string; }

class Foo {
	getSomething(): BType {
		return null;
	}
}

var foo = new Foo();
var x:BType = foo.getSomething();