summaryrefslogtreecommitdiff
path: root/cli/doc/node.rs
diff options
context:
space:
mode:
authorBartek IwaƄczuk <biwanczuk@gmail.com>2020-04-08 17:03:42 +0200
committerGitHub <noreply@github.com>2020-04-08 17:03:42 +0200
commit491b8e1cea76753397bdeb0aeb1598bc78d22c8f (patch)
tree2eadbbcd2efe744c222c0d1b161a0131e498848b /cli/doc/node.rs
parentfe17496831a0b3dcd252d097c82df529d665aad5 (diff)
feat(doc): handle function params and type params (#4672)
Diffstat (limited to 'cli/doc/node.rs')
-rw-r--r--cli/doc/node.rs10
1 files changed, 10 insertions, 0 deletions
diff --git a/cli/doc/node.rs b/cli/doc/node.rs
index 1be3ba7b1..a6b11133e 100644
--- a/cli/doc/node.rs
+++ b/cli/doc/node.rs
@@ -16,8 +16,18 @@ pub enum DocNodeKind {
#[derive(Debug, Serialize, Clone)]
#[serde(rename_all = "camelCase")]
+pub enum ParamKind {
+ Identifier,
+ Rest,
+ Array,
+ Object,
+}
+
+#[derive(Debug, Serialize, Clone)]
+#[serde(rename_all = "camelCase")]
pub struct ParamDef {
pub name: String,
+ pub kind: ParamKind,
pub ts_type: Option<super::ts_type::TsTypeDef>,
}