Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
bsorrentino committed Mar 1, 2018
1 parent d44dbfb commit 88af274
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 35 deletions.
45 changes: 24 additions & 21 deletions processor/src/main/resources/headerD.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,33 +13,19 @@ type char = string;
type chararray = [byte];
type bytearray = [char];

type Runnable = () => void;
type Runnable = () => void ;

type Supplier<T> = () => T;
type Func<T,R> = ( t:T ) => R ;

type Consumer<T> = ( v:T) => void;
type Supplier<T> = () => T ;

type UnaryOperator<T> = ( v:T ) => T ;

type Predicate<T> = ( v:T ) => boolean;

type Comparator<T> = ( o1:T, o2:T ) => int;

//
// NASHORN
//

declare function print( ...args: any[]):void
type Consumer<T> = ( v:T ) => void ;

declare function load( module:string ):void

declare namespace Java {

export function type<T>( t:string):T;
type UnaryOperator<T> = ( v:T ) => T ;

export function from<T>( list:java.util.List<T>):Array<T> ;
}
type Predicate<T> = ( v:T ) => boolean ;

type Comparator<T> = ( o1:T, o2:T ) => int ;

declare namespace java.lang {

Expand All @@ -66,3 +52,20 @@ declare namespace java.io {
interface Closeable {}
interface Serializable {}
}


//
// Nashorn
//

declare function print( ...args: any[] ):void

declare function load( module:string ):void

declare namespace Java {

export function type<T>( t:string):T;

export function from<T>( list:java.util.List<T> ):Array<T> ;

}
14 changes: 0 additions & 14 deletions sample/src/main/ts/nashorn.d.ts

This file was deleted.

0 comments on commit 88af274

Please sign in to comment.