Skip to content

Commit

Permalink
Adjusting admonition as docusaurus is incorrectly rendering warning a…
Browse files Browse the repository at this point in the history
…dmonitions as danger
  • Loading branch information
kriswest committed Dec 6, 2023
1 parent fb81b23 commit cc68903
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion website/versioned_docs/version-2.0/api/ref/Types.md
Original file line number Diff line number Diff line change
Expand Up @@ -111,8 +111,10 @@ Describes results that an Intent handler may optionally return that should be co

Represented as a union type in TypeScript, however, this type may be rendered as an interface in other languages that both the `Context` and `Channel` types implement, allowing either to be returned by an `IntentHandler`.

:::warning
:::info

The original release of FDC3 2.0 contained an error in the `IntentResult` type, which omitted `void` as a valid return type. It was intended that an `IntentHandler` be able to return either `void` or a Promise that resolves to `void` and, as these are valid results, no error should be thrown by `IntentResolution.getResult()`. This was corrected in FDC3 2.1 and retrospectively corrected in FDC3 2.0.

:::

#### See also
Expand Down

0 comments on commit cc68903

Please sign in to comment.