mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-04-17 23:08:36 +02:00
REFACTOR: Move Result to the public API (#2398)
* REFACTOR: Move Result to the public API This refactors Result<T> to be part of the public NetscriptDefinitions. It is not used by anything in this PR, but it is planned to be used in the autoinfil APIs, or lacking that, future APIs, so this should not be exposing anything prematurely. * Add @public as api-extractor suggested and generate docs * Use import type --------- Co-authored-by: CatLover <152669316+catloversg@users.noreply.github.com>
This commit is contained in:
14
markdown/bitburner.result.md
Normal file
14
markdown/bitburner.result.md
Normal file
@@ -0,0 +1,14 @@
|
||||
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
||||
|
||||
[Home](./index.md) > [bitburner](./bitburner.md) > [Result](./bitburner.result.md)
|
||||
|
||||
## Result type
|
||||
|
||||
|
||||
**Signature:**
|
||||
|
||||
```typescript
|
||||
type Result<T extends object = object> = SuccessResult<T> | FailureResult;
|
||||
```
|
||||
**References:** [SuccessResult](./bitburner.successresult.md)<!-- -->, [FailureResult](./bitburner.failureresult.md)
|
||||
|
||||
Reference in New Issue
Block a user