mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-04-16 06:18:42 +02:00
* 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>
15 lines
416 B
Markdown
15 lines
416 B
Markdown
<!-- 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)
|
|
|