add firefox extension template
This commit is contained in:
11
externs/ts/AnyOf2.hx
Normal file
11
externs/ts/AnyOf2.hx
Normal file
@@ -0,0 +1,11 @@
|
||||
package ts;
|
||||
|
||||
/**
|
||||
AnyOf implementation generated by dts2hx
|
||||
**/
|
||||
@:transitive extern abstract AnyOf2<T0, T1>(Dynamic) from T0 from T1 to T0 to T1 {
|
||||
var asType0(get, never) : T0;
|
||||
private inline function get_asType0():T0 return this;
|
||||
var asType1(get, never) : T1;
|
||||
private inline function get_asType1():T1 return this;
|
||||
}
|
13
externs/ts/AnyOf3.hx
Normal file
13
externs/ts/AnyOf3.hx
Normal file
@@ -0,0 +1,13 @@
|
||||
package ts;
|
||||
|
||||
/**
|
||||
AnyOf implementation generated by dts2hx
|
||||
**/
|
||||
@:transitive extern abstract AnyOf3<T0, T1, T2>(Dynamic) from T0 from T1 from T2 to T0 to T1 to T2 {
|
||||
var asType0(get, never) : T0;
|
||||
private inline function get_asType0():T0 return this;
|
||||
var asType1(get, never) : T1;
|
||||
private inline function get_asType1():T1 return this;
|
||||
var asType2(get, never) : T2;
|
||||
private inline function get_asType2():T2 return this;
|
||||
}
|
13
externs/ts/Tuple1.hx
Normal file
13
externs/ts/Tuple1.hx
Normal file
@@ -0,0 +1,13 @@
|
||||
package ts;
|
||||
|
||||
/**
|
||||
Tuple type implementation generated by dts2hx
|
||||
**/
|
||||
@:forward @:forwardStatics extern abstract Tuple1<T0>(std.Array<Any>) from std.Array<Any> to std.Array<Any> {
|
||||
public inline function new(element0:T0) {
|
||||
this = [element0];
|
||||
}
|
||||
public var element0(get, set) : T0;
|
||||
inline function get_element0():T0 return cast this[0];
|
||||
inline function set_element0(v:T0):T0 return cast this[0] = cast v;
|
||||
}
|
16
externs/ts/Tuple2.hx
Normal file
16
externs/ts/Tuple2.hx
Normal file
@@ -0,0 +1,16 @@
|
||||
package ts;
|
||||
|
||||
/**
|
||||
Tuple type implementation generated by dts2hx
|
||||
**/
|
||||
@:forward @:forwardStatics extern abstract Tuple2<T0, T1>(std.Array<Any>) from std.Array<Any> to std.Array<Any> {
|
||||
public inline function new(element0:T0, element1:T1) {
|
||||
this = [element0, element1];
|
||||
}
|
||||
public var element0(get, set) : T0;
|
||||
inline function get_element0():T0 return cast this[0];
|
||||
inline function set_element0(v:T0):T0 return cast this[0] = cast v;
|
||||
public var element1(get, set) : T1;
|
||||
inline function get_element1():T1 return cast this[1];
|
||||
inline function set_element1(v:T1):T1 return cast this[1] = cast v;
|
||||
}
|
19
externs/ts/Tuple3.hx
Normal file
19
externs/ts/Tuple3.hx
Normal file
@@ -0,0 +1,19 @@
|
||||
package ts;
|
||||
|
||||
/**
|
||||
Tuple type implementation generated by dts2hx
|
||||
**/
|
||||
@:forward @:forwardStatics extern abstract Tuple3<T0, T1, T2>(std.Array<Any>) from std.Array<Any> to std.Array<Any> {
|
||||
public inline function new(element0:T0, element1:T1, element2:T2) {
|
||||
this = [element0, element1, element2];
|
||||
}
|
||||
public var element0(get, set) : T0;
|
||||
inline function get_element0():T0 return cast this[0];
|
||||
inline function set_element0(v:T0):T0 return cast this[0] = cast v;
|
||||
public var element1(get, set) : T1;
|
||||
inline function get_element1():T1 return cast this[1];
|
||||
inline function set_element1(v:T1):T1 return cast this[1] = cast v;
|
||||
public var element2(get, set) : T2;
|
||||
inline function get_element2():T2 return cast this[2];
|
||||
inline function set_element2(v:T2):T2 return cast this[2] = cast v;
|
||||
}
|
22
externs/ts/Tuple4.hx
Normal file
22
externs/ts/Tuple4.hx
Normal file
@@ -0,0 +1,22 @@
|
||||
package ts;
|
||||
|
||||
/**
|
||||
Tuple type implementation generated by dts2hx
|
||||
**/
|
||||
@:forward @:forwardStatics extern abstract Tuple4<T0, T1, T2, T3>(std.Array<Any>) from std.Array<Any> to std.Array<Any> {
|
||||
public inline function new(element0:T0, element1:T1, element2:T2, element3:T3) {
|
||||
this = [element0, element1, element2, element3];
|
||||
}
|
||||
public var element0(get, set) : T0;
|
||||
inline function get_element0():T0 return cast this[0];
|
||||
inline function set_element0(v:T0):T0 return cast this[0] = cast v;
|
||||
public var element1(get, set) : T1;
|
||||
inline function get_element1():T1 return cast this[1];
|
||||
inline function set_element1(v:T1):T1 return cast this[1] = cast v;
|
||||
public var element2(get, set) : T2;
|
||||
inline function get_element2():T2 return cast this[2];
|
||||
inline function set_element2(v:T2):T2 return cast this[2] = cast v;
|
||||
public var element3(get, set) : T3;
|
||||
inline function get_element3():T3 return cast this[3];
|
||||
inline function set_element3(v:T3):T3 return cast this[3] = cast v;
|
||||
}
|
6
externs/ts/Undefined.hx
Normal file
6
externs/ts/Undefined.hx
Normal file
@@ -0,0 +1,6 @@
|
||||
package ts;
|
||||
|
||||
/**
|
||||
`Undefined` corresponds to `void` in TypeScript; in haxe `Void` cannot be used as a field type (only function return) so we must use `Any` instead. This alias serves as documentation that the type is `void` and therefore value is `undefined`
|
||||
**/
|
||||
typedef Undefined = Any;
|
Reference in New Issue
Block a user