add some todos
This commit is contained in:
parent
f54acd6e8a
commit
e641b139b8
@ -106,3 +106,11 @@ cat(readLines("tests/testthat/app/app.R"), sep = "\n")
|
|||||||
|
|
||||||
ts_compile("tests/testthat/app/app.R", file = "")
|
ts_compile("tests/testthat/app/app.R", file = "")
|
||||||
```
|
```
|
||||||
|
|
||||||
|
## TODO
|
||||||
|
|
||||||
|
- [ ] Add support for more types
|
||||||
|
- [ ] Allow generic types (e.g., `<T>(x: T) => T`)
|
||||||
|
- [ ] Add support for conditional return types
|
||||||
|
|
||||||
|
e.g., `const sample = <T, N extends number>(x: T[], n: N) => N extends 1 ? T : T[]`
|
||||||
|
|||||||
11
README.md
11
README.md
@ -112,3 +112,14 @@ ts_compile("tests/testthat/app/app.R", file = "")
|
|||||||
#> const fn_first = (x: string | string[]) => Promise<Character<1>)>;
|
#> const fn_first = (x: string | string[]) => Promise<Character<1>)>;
|
||||||
#> const fn_mean = (x: number | number[]) => Promise<Numeric<1>)>;
|
#> const fn_mean = (x: number | number[]) => Promise<Numeric<1>)>;
|
||||||
```
|
```
|
||||||
|
|
||||||
|
## TODO
|
||||||
|
|
||||||
|
- [ ] Add support for more types
|
||||||
|
|
||||||
|
- [ ] Allow generic types (e.g., `<T>(x: T) => T`)
|
||||||
|
|
||||||
|
- [ ] Add support for conditional return types
|
||||||
|
|
||||||
|
e.g., `const sample = <T, N extends number>(x: T[], n: N) => N
|
||||||
|
extends 1 ? T : T[]`
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user