diff options
author | Valentin Anger <syrupthinker@gryphno.de> | 2020-07-12 14:16:33 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-07-12 14:16:33 +0200 |
commit | 3374c73fba3a96df22d0c04e6c17078ca8cce45b (patch) | |
tree | 91d996554a2e276724a86ecb3bff19ea5411238b /cli/doc/node.rs | |
parent | 871f9255e37b4d2e63439c84da8e9bed6b388034 (diff) |
feat(doc): Improve terminal printer (#6594)
- Add more support for generics
- Add the --private flag - displays documentation for
not exported and private nodes
- Display more attributes like abstract, static and readonly
- Display type aliases
- Refactor module to use the Display trait
- Use a bit more color
Diffstat (limited to 'cli/doc/node.rs')
-rw-r--r-- | cli/doc/node.rs | 20 |
1 files changed, 1 insertions, 19 deletions
diff --git a/cli/doc/node.rs b/cli/doc/node.rs index 0f97ed65a..690221ed0 100644 --- a/cli/doc/node.rs +++ b/cli/doc/node.rs @@ -14,24 +14,6 @@ pub enum DocNodeKind { Namespace, } -#[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 optional: bool, - pub ts_type: Option<super::ts_type::TsTypeDef>, -} - #[derive(Debug, Serialize, Clone, PartialEq)] pub struct Location { pub filename: String, @@ -82,7 +64,7 @@ pub struct Reexport { #[derive(Debug, Serialize, Clone)] #[serde(rename_all = "camelCase")] pub struct ModuleDoc { - pub exports: Vec<DocNode>, + pub definitions: Vec<DocNode>, pub reexports: Vec<Reexport>, } |