From 8dcbd9ecc0bb72a8ae4f90738e3526364a159b7c Mon Sep 17 00:00:00 2001 From: Sigurd Fosseng Date: Thu, 26 Nov 2020 11:11:28 +0100 Subject: [PATCH] npm run docs --- api.md | 23 ++++++++++++++++++++++- 1 file changed, 22 insertions(+), 1 deletion(-) diff --git a/api.md b/api.md index eccea25e..87695c09 100644 --- a/api.md +++ b/api.md @@ -1520,6 +1520,13 @@ interface MyObject { }``` +## [type-globalThis](./test/programs/type-globalThis) + +```ts +export type Test = typeof globalThis; +``` + + ## [type-intersection](./test/programs/type-intersection) ```ts @@ -1550,7 +1557,7 @@ interface Foo { ``` -## [type-intersection](./test/programs/type-intersection-reuse) +## [type-intersection-reuse](./test/programs/type-intersection-reuse) ```ts interface Type1 { @@ -1664,6 +1671,20 @@ class MyObject { ``` +## [type-recursive](./test/programs/type-recursive) + +```ts +/** + * A recursive type + */ +export type TestChildren = TestChild | Array; + +interface TestChild { + type: string; +} +``` + + ## [type-union](./test/programs/type-union) ```ts