diff options
author | Fabio Berger <me@fabioberger.com> | 2018-08-23 23:55:41 +0800 |
---|---|---|
committer | Fabio Berger <me@fabioberger.com> | 2018-08-23 23:55:41 +0800 |
commit | 28f077b16f5fc5f08f95bb2ad00724e6ea89dd00 (patch) | |
tree | dba9e82409721d44ad41d7a434f3378f075486e9 /packages/react-docs/src/types.ts | |
parent | 3563fabe8871f69799dd7c89b83ecea19951794c (diff) | |
download | dexon-0x-contracts-28f077b16f5fc5f08f95bb2ad00724e6ea89dd00.tar dexon-0x-contracts-28f077b16f5fc5f08f95bb2ad00724e6ea89dd00.tar.gz dexon-0x-contracts-28f077b16f5fc5f08f95bb2ad00724e6ea89dd00.tar.bz2 dexon-0x-contracts-28f077b16f5fc5f08f95bb2ad00724e6ea89dd00.tar.lz dexon-0x-contracts-28f077b16f5fc5f08f95bb2ad00724e6ea89dd00.tar.xz dexon-0x-contracts-28f077b16f5fc5f08f95bb2ad00724e6ea89dd00.tar.zst dexon-0x-contracts-28f077b16f5fc5f08f95bb2ad00724e6ea89dd00.zip |
Add support for rending the Tuple type
Diffstat (limited to 'packages/react-docs/src/types.ts')
-rw-r--r-- | packages/react-docs/src/types.ts | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/packages/react-docs/src/types.ts b/packages/react-docs/src/types.ts index 7fd785e32..f9cb5e26a 100644 --- a/packages/react-docs/src/types.ts +++ b/packages/react-docs/src/types.ts @@ -31,6 +31,12 @@ export interface TypeDocType { declaration: TypeDocNode; elementType?: TypeDocType; indexSignature?: TypeDocNode; + elements?: TupleElement[]; +} + +export interface TupleElement { + type: string; + name: string; } export interface TypeDocFlags { @@ -78,6 +84,7 @@ export enum TypeDocTypes { Union = 'union', TypeParameter = 'typeParameter', Intersection = 'intersection', + Tuple = 'tuple', Unknown = 'unknown', } @@ -157,6 +164,7 @@ export interface Type { method?: TypescriptMethod; indexSignature?: IndexSignature; externalLink?: string; + tupleElements?: Type[]; } export interface ElementType { |