Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: grammar #1938

Merged
merged 4 commits into from
May 30, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/lib/converter/plugins/GroupPlugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export class GroupPlugin extends ConverterComponent {
*/
static SINGULARS = {
[ReflectionKind.Enum]: "Enumeration",
[ReflectionKind.EnumMember]: "Enumeration member",
[ReflectionKind.EnumMember]: "Enumeration Member",
};

/**
Expand All @@ -34,8 +34,8 @@ export class GroupPlugin extends ConverterComponent {
[ReflectionKind.Class]: "Classes",
[ReflectionKind.Property]: "Properties",
[ReflectionKind.Enum]: "Enumerations",
[ReflectionKind.EnumMember]: "Enumeration members",
[ReflectionKind.TypeAlias]: "Type aliases",
[ReflectionKind.EnumMember]: "Enumeration Members",
[ReflectionKind.TypeAlias]: "Type Aliases",
};

/** @internal */
Expand Down
2 changes: 1 addition & 1 deletion src/lib/output/plugins/LegendPlugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ const completeLegend: LegendItem[][] = [
],
[
{ name: "Enumeration", classes: ["tsd-kind-enum"] },
{ name: "Enumeration member", classes: ["tsd-kind-enum-member"] },
{ name: "Enumeration Member", classes: ["tsd-kind-enum-member"] },
{
name: "Property",
classes: ["tsd-kind-property", "tsd-parent-kind-enum"],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export const memberDeclaration = (context: DefaultThemeRenderContext, props: Dec

{!!props.typeParameters && (
<>
<h4 class="tsd-type-parameters-title">Type parameters</h4>
<h4 class="tsd-type-parameters-title">Type Parameters</h4>
{context.typeParameters(props.typeParameters)}
</>
)}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export const memberSignatureBody = (

{!!props.typeParameters && (
<>
<h4 class="tsd-type-parameters-title">Type parameters</h4>
<h4 class="tsd-type-parameters-title">Type Parameters</h4>
{context.typeParameters(props.typeParameters)}
</>
)}
Expand Down
2 changes: 1 addition & 1 deletion src/lib/output/themes/default/templates/reflection.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export const reflectionTemplate = (context: DefaultThemeRenderContext, props: Pa

{hasTypeParameters(props.model) && (
<section class="tsd-panel tsd-type-parameters">
<h3>Type parameters</h3>
<h3>Type Parameters</h3>
{context.typeParameters(props.model.typeParameters)}
</section>
)}
Expand Down
4 changes: 2 additions & 2 deletions src/test/converter/alias/specs.json
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@
],
"groups": [
{
"title": "Type aliases",
"title": "Type Aliases",
"kind": 4194304,
"children": [
8,
Expand All @@ -196,4 +196,4 @@
]
}
]
}
}
4 changes: 2 additions & 2 deletions src/test/converter/class/specs-with-lump-categories.json
Original file line number Diff line number Diff line change
Expand Up @@ -1499,7 +1499,7 @@
]
},
{
"title": "Type aliases",
"title": "Type Aliases",
"kind": 4194304,
"children": [
90
Expand Down Expand Up @@ -3514,4 +3514,4 @@
]
}
]
}
}
4 changes: 2 additions & 2 deletions src/test/converter/class/specs.json
Original file line number Diff line number Diff line change
Expand Up @@ -1495,7 +1495,7 @@
]
},
{
"title": "Type aliases",
"title": "Type Aliases",
"kind": 4194304,
"children": [
90
Expand Down Expand Up @@ -3510,4 +3510,4 @@
]
}
]
}
}
24 changes: 12 additions & 12 deletions src/test/converter/enum/specs.json
Original file line number Diff line number Diff line change
Expand Up @@ -86,22 +86,22 @@
"id": 14,
"name": "a",
"kind": 16,
"kindString": "Enumeration member",
"kindString": "Enumeration Member",
"flags": {},
"defaultValue": "1"
},
{
"id": 15,
"name": "b",
"kind": 16,
"kindString": "Enumeration member",
"kindString": "Enumeration Member",
"flags": {},
"defaultValue": "2"
}
],
"groups": [
{
"title": "Enumeration members",
"title": "Enumeration Members",
"kind": 16,
"children": [
14,
Expand All @@ -124,7 +124,7 @@
"id": 6,
"name": "EnumValue1",
"kind": 16,
"kindString": "Enumeration member",
"kindString": "Enumeration Member",
"flags": {},
"comment": {
"shortText": "This is the first enum member."
Expand All @@ -135,7 +135,7 @@
"id": 7,
"name": "EnumValue2",
"kind": 16,
"kindString": "Enumeration member",
"kindString": "Enumeration Member",
"flags": {},
"comment": {
"shortText": "This is the second enum member."
Expand All @@ -146,7 +146,7 @@
"id": 8,
"name": "EnumValue3",
"kind": 16,
"kindString": "Enumeration member",
"kindString": "Enumeration Member",
"flags": {},
"comment": {
"shortText": "This is the third enum member."
Expand All @@ -156,7 +156,7 @@
],
"groups": [
{
"title": "Enumeration members",
"title": "Enumeration Members",
"kind": 16,
"children": [
6,
Expand All @@ -180,7 +180,7 @@
"id": 2,
"name": "EnumValue1",
"kind": 16,
"kindString": "Enumeration member",
"kindString": "Enumeration Member",
"flags": {},
"comment": {
"shortText": "This is the first enum member."
Expand All @@ -191,7 +191,7 @@
"id": 3,
"name": "EnumValue2",
"kind": 16,
"kindString": "Enumeration member",
"kindString": "Enumeration Member",
"flags": {},
"comment": {
"shortText": "This is the second enum member."
Expand All @@ -202,7 +202,7 @@
"id": 4,
"name": "EnumValue3",
"kind": 16,
"kindString": "Enumeration member",
"kindString": "Enumeration Member",
"flags": {},
"comment": {
"shortText": "This is the third enum member."
Expand All @@ -212,7 +212,7 @@
],
"groups": [
{
"title": "Enumeration members",
"title": "Enumeration Members",
"kind": 16,
"children": [
2,
Expand Down Expand Up @@ -241,4 +241,4 @@
]
}
]
}
}
24 changes: 12 additions & 12 deletions src/test/converter/enum/specs.nodoc.json
Original file line number Diff line number Diff line change
Expand Up @@ -86,22 +86,22 @@
"id": 14,
"name": "a",
"kind": 16,
"kindString": "Enumeration member",
"kindString": "Enumeration Member",
"flags": {},
"defaultValue": "1"
},
{
"id": 15,
"name": "b",
"kind": 16,
"kindString": "Enumeration member",
"kindString": "Enumeration Member",
"flags": {},
"defaultValue": "2"
}
],
"groups": [
{
"title": "Enumeration members",
"title": "Enumeration Members",
"kind": 16,
"children": [
14,
Expand All @@ -124,7 +124,7 @@
"id": 6,
"name": "EnumValue1",
"kind": 16,
"kindString": "Enumeration member",
"kindString": "Enumeration Member",
"flags": {},
"comment": {
"shortText": "This is the first enum member."
Expand All @@ -135,7 +135,7 @@
"id": 7,
"name": "EnumValue2",
"kind": 16,
"kindString": "Enumeration member",
"kindString": "Enumeration Member",
"flags": {},
"comment": {
"shortText": "This is the second enum member."
Expand All @@ -146,7 +146,7 @@
"id": 8,
"name": "EnumValue3",
"kind": 16,
"kindString": "Enumeration member",
"kindString": "Enumeration Member",
"flags": {},
"comment": {
"shortText": "This is the third enum member."
Expand All @@ -156,7 +156,7 @@
],
"groups": [
{
"title": "Enumeration members",
"title": "Enumeration Members",
"kind": 16,
"children": [
6,
Expand All @@ -180,7 +180,7 @@
"id": 2,
"name": "EnumValue1",
"kind": 16,
"kindString": "Enumeration member",
"kindString": "Enumeration Member",
"flags": {},
"comment": {
"shortText": "This is the first enum member."
Expand All @@ -191,7 +191,7 @@
"id": 3,
"name": "EnumValue2",
"kind": 16,
"kindString": "Enumeration member",
"kindString": "Enumeration Member",
"flags": {},
"comment": {
"shortText": "This is the second enum member."
Expand All @@ -202,7 +202,7 @@
"id": 4,
"name": "EnumValue3",
"kind": 16,
"kindString": "Enumeration member",
"kindString": "Enumeration Member",
"flags": {},
"comment": {
"shortText": "This is the third enum member."
Expand All @@ -212,7 +212,7 @@
],
"groups": [
{
"title": "Enumeration members",
"title": "Enumeration Members",
"kind": 16,
"children": [
2,
Expand Down Expand Up @@ -241,4 +241,4 @@
]
}
]
}
}
6 changes: 3 additions & 3 deletions src/test/converter/exports/specs.json
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@
],
"groups": [
{
"title": "Type aliases",
"title": "Type Aliases",
"kind": 4194304,
"children": [
25
Expand Down Expand Up @@ -570,7 +570,7 @@
]
},
{
"title": "Type aliases",
"title": "Type Aliases",
"kind": 4194304,
"children": [
35
Expand Down Expand Up @@ -606,4 +606,4 @@
]
}
]
}
}
4 changes: 2 additions & 2 deletions src/test/converter/interface/specs.json
Original file line number Diff line number Diff line change
Expand Up @@ -313,7 +313,7 @@
]
},
{
"title": "Type aliases",
"title": "Type Aliases",
"kind": 4194304,
"children": [
24
Expand Down Expand Up @@ -1852,4 +1852,4 @@
]
}
]
}
}
6 changes: 3 additions & 3 deletions src/test/converter/js/specs.json
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@
],
"groups": [
{
"title": "Type aliases",
"title": "Type Aliases",
"kind": 4194304,
"children": [
5
Expand Down Expand Up @@ -636,7 +636,7 @@
]
},
{
"title": "Type aliases",
"title": "Type Aliases",
"kind": 4194304,
"children": [
14,
Expand Down Expand Up @@ -678,4 +678,4 @@
]
}
]
}
}
4 changes: 2 additions & 2 deletions src/test/converter/mixin/specs.json
Original file line number Diff line number Diff line change
Expand Up @@ -1385,7 +1385,7 @@
]
},
{
"title": "Type aliases",
"title": "Type Aliases",
"kind": 4194304,
"children": [
6,
Expand All @@ -1404,4 +1404,4 @@
]
}
]
}
}