-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Export more things in the TypeScript test file
- Loading branch information
Showing
1 changed file
with
20 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" | ||
} |