summaryrefslogtreecommitdiff
path: root/cli/doc/ts_type.rs
diff options
context:
space:
mode:
authorRubin Bhandari <roobin.bhandari@gmail.com>2020-06-11 22:56:26 +0545
committerGitHub <noreply@github.com>2020-06-11 13:11:26 -0400
commit6ccf9037a6b36c81ea0e6ac12d0e2dbd793f6114 (patch)
treeabb74317f03844454306c6d6b52b963ffe8e1d16 /cli/doc/ts_type.rs
parent818a8010928cb8cef0b7043bd881c8cdce9b6efc (diff)
feat: add Deno.osName() (#5714)
Diffstat (limited to 'cli/doc/ts_type.rs')
-rw-r--r--cli/doc/ts_type.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/cli/doc/ts_type.rs b/cli/doc/ts_type.rs
index ec1a5e7e9..e1677f13e 100644
--- a/cli/doc/ts_type.rs
+++ b/cli/doc/ts_type.rs
@@ -529,7 +529,7 @@ impl Into<TsTypeDef> for &TsType {
TsUnionOrIntersectionType(union_or_inter) => union_or_inter.into(),
TsArrayType(array_type) => array_type.into(),
TsTupleType(tuple_type) => tuple_type.into(),
- TsTypeOperator(type_op_type) => type_op_type.into(),
+ TsTypeOperator(type_op_name) => type_op_name.into(),
TsParenthesizedType(paren_type) => paren_type.into(),
TsRestType(rest_type) => rest_type.into(),
TsOptionalType(optional_type) => optional_type.into(),
@@ -737,7 +737,7 @@ pub fn ts_type_ann_to_def(type_ann: &TsTypeAnn) -> TsTypeDef {
TsUnionOrIntersectionType(union_or_inter) => union_or_inter.into(),
TsArrayType(array_type) => array_type.into(),
TsTupleType(tuple_type) => tuple_type.into(),
- TsTypeOperator(type_op_type) => type_op_type.into(),
+ TsTypeOperator(type_op_name) => type_op_name.into(),
TsParenthesizedType(paren_type) => paren_type.into(),
TsRestType(rest_type) => rest_type.into(),
TsOptionalType(optional_type) => optional_type.into(),