Skip to content

Commit

Permalink
Export more things in the TypeScript test file
Browse files Browse the repository at this point in the history
  • Loading branch information
j-f1 authored and ljharb committed Sep 28, 2017
1 parent 941629d commit 9d6dabd
Showing 1 changed file with 20 additions and 2 deletions.
22 changes: 20 additions & 2 deletions tests/files/typescript.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,23 @@
type X = string
export type MyType = string
export enum MyEnum {
Foo,
Bar,
Baz
}
export interface Foo {
native: string | number
typedef: MyType
enum: MyEnum
}

export abstract class Bar {
abstract foo(): Foo

method() {
return "foo"
}
}

export function getFoo() : X {
export function getFoo() : MyType {
return "foo"
}

0 comments on commit 9d6dabd

Please sign in to comment.