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>
13 lines
324 B
Markdown
13 lines
324 B
Markdown
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
|
|
[Home](./index.md) > [bitburner](./bitburner.md) > [SuccessResult](./bitburner.successresult.md)
|
|
|
|
## SuccessResult type
|
|
|
|
|
|
**Signature:**
|
|
|
|
```typescript
|
|
type SuccessResult<T extends object> = { success: true; message?: string } & T;
|
|
```
|