Skip to content

Commit c12e7a5

Browse files
committed
Fix hrefs in supported-types
1 parent e97505b commit c12e7a5

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

pages/docs/gentype/latest/supported-types.mdx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ The `@genType.as` annotation can be used to modify the name emitted for a varian
8888
Boolean/integer/float constants can be expressed as ``` | [@genType.as true] True ``` and ``` | [@genType.as 20] Twenty ``` and ``` | [@genType.as 0.5] Half ```. Similarly for polymorphic variants.
8989
The `@genType.as` annotation can also be used on variants with payloads to determine what appears in `{ tag: ... }`.
9090

91-
For more examples, see [Variants.res](examples/typescript-react-example/src/Variants.res) and [VariantsWithPayload.res](examples/typescript-react-example/src/VariantsWithPayload.res).
91+
For more examples, see [Variants.res](https://github.com/reason-association/genType/tree/master/examples/typescript-react-example/src/Variants.res) and [VariantsWithPayload.res](https://github.com/reason-association/genType/tree/master/examples/typescript-react-example/src/VariantsWithPayload.res).
9292

9393
**NOTE:** When exporting/importing values that have polymorphic variant type, you have to use type annotations, and cannot rely on type inference. So instead of ```let monday = `Monday```, use ```let monday : days = `Monday```. The former does not work, as the type checker infers a type without annotations.
9494

@@ -97,7 +97,7 @@ For more examples, see [Variants.res](examples/typescript-react-example/src/Vari
9797
Arrays with elements of ReScript type `t` are exported to JS arrays with elements of the corresponding JS type. If a conversion is required, a copy of the array is performed.
9898

9999
Immutable arrays are supported with the additional ReScript library
100-
[ImmutableArray.res/.resi](examples/typescript-react-example/src/ImmutableArray.resi), which currently needs to be added to your project.
100+
[ImmutableArray.res/.resi](https://github.com/reason-association/genType/tree/master/examples/typescript-react-example/src/ImmutableArray.resi), which currently needs to be added to your project.
101101
The type `ImmutableArray.t(+'a)` is covariant, and is mapped to readonly array types in TS/Flow. As opposed to TS/Flow, `ImmutableArray.t` does not allow casting in either direction with normal arrays. Instead, a copy must be performed using `fromArray` and `toArray`.
102102

103103
## Functions and Function Components
@@ -146,13 +146,13 @@ It's possible to import an existing TS/Flow type as an opaque type in ReScript.
146146
```
147147

148148
defines a type which maps to `weekday` in `SomeFlowTypes.js`.
149-
See for example [Types.re](examples/flow-react-example/src/Types.re) and [SomeFlowTypes.js](examples/flow-react-example/src/SomeFlowTypes.js).
149+
See for example [Types.re](https://github.com/reason-association/genType/tree/master/examples/flow-react-example/src/Types.re) and [SomeFlowTypes.js](https://github.com/reason-association/genType/tree/master/examples/flow-react-example/src/SomeFlowTypes.js).
150150

151151
## Recursive Types
152152

153153
Recursive types which do not require a conversion are fully supported.
154154
If a recursive type requires a conversion, only a shallow conversion is performed, and a warning comment is included in the output. (The alternative would be to perform an expensive conversion down a data structure of arbitrary size).
155-
See for example [Types.res](examples/typescript-react-example/src/nested/Types.res).
155+
See for example [Types.res](https://github.com/reason-association/genType/tree/master/examples/typescript-react-example/src/nested/Types.res).
156156

157157
## First Class Modules
158158

0 commit comments

Comments
 (0)