Skip to content

Commit

Permalink
add index.d.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
manland committed Feb 28, 2017
1 parent 0e726a5 commit 2d8a05a
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
5 changes: 3 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
* `1.3.1` :
* add type :
* `1.4.0` :
* add `index.d.ts` to use j2ts with typescript
* add type thx to [@Bliinky](https://github.com/Bliinky):
* java.lang.Object -> any
* java.util.UUID -> string
* java.time.ZonedDateTime -> string
Expand Down
9 changes: 9 additions & 0 deletions index.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
declare module 'j2ts' {

function j2ts(filepath: string, conf: {generateHasClass?: boolean, dest?: string}): Promise<Array<{name: string, str: string}>>;

namespace j2ts {}

export = j2ts;

}

0 comments on commit 2d8a05a

Please sign in to comment.