Skip to content

Commit

Permalink
feat: add create ov typigs
Browse files Browse the repository at this point in the history
  • Loading branch information
afeiship committed Sep 10, 2023
1 parent 60d3d6d commit e6412f9
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
9 changes: 8 additions & 1 deletion types/nx.d.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@
declare namespace Nx {
type BREAKER = object;
type IteratorReturnValue = Nx.BREAKER | undefined | void;
type OverloadResult = {
add(options: OverloadOptions): any;
};
type OverloadOptions = {
args: any[] | number;
fn: Function;
};

type ArrayIterator = (
value: any,
Expand All @@ -20,5 +27,5 @@ declare namespace Nx {
target: any
) => any[];

type DefinedMemember = 'Method' | 'Property' |'BombMethod';
type DefinedMemember = 'Method' | 'Property' | 'BombMethod';
}
5 changes: 5 additions & 0 deletions types/nx.static.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,11 @@ interface NxStatic {
*/
to<T>(promise: Promise<T>): Promise<[Error, undefined] | [undefined, T]>;

/**
* Create overload function.
*/
createOverload(): Nx.OverloadResult;

/**
* Root class of nx.Class.
*/
Expand Down

0 comments on commit e6412f9

Please sign in to comment.