Skip to content

Commit

Permalink
fix(gitignore): fixed type files getting falsely ignored
Browse files Browse the repository at this point in the history
  • Loading branch information
shadowplay1 committed Jan 2, 2024
1 parent a6754bc commit 487b894
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ node_modules/
dist/

# compiled types
types/
*.d.ts

# testing data
data/
Expand Down
18 changes: 18 additions & 0 deletions src/types/debug.interface.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
import { Maybe } from './misc/utils'

/**
* Represents a debug result interface.
*
* Type parameters:
* - `TResult` ({@link any}) - The return type of the debug function.
*
* @typedef {object} IDebugResult<TResult>
* @prop {Maybe<TResult>} result The returned value of the debug function.
* @prop {Maybe<Error>} error The error that possibly could be thrown during the debug function call.
*
* @template TResult The return type of the debug function.
*/
export interface IDebugResult<TResult = any> {
result: Maybe<TResult>
error: Maybe<Error>
}

0 comments on commit 487b894

Please sign in to comment.