Skip to content

Commit 2dde2e9

Browse files
committed
Slightly more docs cleanup
1 parent 6e6b3b6 commit 2dde2e9

File tree

3 files changed

+5
-16
lines changed

3 files changed

+5
-16
lines changed

internal-docs/components-and-events.md

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -9,27 +9,17 @@ TypeDoc uses a `Component` and `Event`-based architecture.
99
## `Component`
1010

1111
`Component`s can have child `Component`s.
12-
Each child gets a name; a component cannot have 2x children with the same name.
12+
Each child gets a name; a component cannot have multiple children with the same name.
1313

1414
`Component` has methods / fields:
1515
`componentName` set by decorator metadata
16-
`addComponent(name, ComponentClass)` responsible for instantiating the component
1716
`trigger()`
18-
`bubble()` like trigger, but after trigger also calls on parent component.
1917

2018
`Component` subclasses are annotated with a decorator.
2119
if not marked `internal` and if is a subclass of another component's childClass,
2220
then becomes registered as a `_defaultComponent`
2321

24-
Components are slowly being removed from TypeDoc.
25-
26-
## `Event`
27-
28-
`Event`s can be fired.
29-
30-
`Event` has methods:
31-
`isPropagationStopped`
32-
`isDefaultPrevented`
22+
This component-decorator hierarchy is slowly being removed from TypeDoc.
3323

3424
## `@Option`
3525

internal-docs/internationalization.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,9 @@ translation keys include numbers to indicate placeholders in the English string,
3939
the translated strings should include `{n}` where the placeholder will be filled in at
4040
runtime.
4141

42+
> Please do not submit machine generated translations for languages you are unfamiliar with.
43+
> TypeDoc relies on contributors to ensure the accuracy of included translations.
44+
4245
## Validation
4346

4447
The `buildTranslation` and `buildIncompleteTranslation` functions will attempt to

src/lib/utils/component.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -183,10 +183,6 @@ export abstract class ChildableComponent<
183183
return Object.values(this._componentChildren || {}) as C[];
184184
}
185185

186-
hasComponent(name: string): boolean {
187-
return !!(this._componentChildren || {})[name];
188-
}
189-
190186
addComponent<T extends C>(
191187
name: string,
192188
componentClass: T | ComponentClass<T, O>,

0 commit comments

Comments
 (0)