1
0
mirror of https://github.com/flarum/core.git synced 2025-08-05 07:57:46 +02:00

Extend documentation

This commit is contained in:
Franz Liedke
2020-09-18 14:12:31 +02:00
parent 4a0947db4b
commit b251ff0469

View File

@@ -129,6 +129,8 @@ export default abstract class Component<T extends ComponentAttrs = any> implemen
/** /**
* Initialize the component's attrs. * Initialize the component's attrs.
*
* This can be used to assign default values for missing, optional attrs.
*/ */
protected static initAttrs<T>(attrs: T): void {} protected static initAttrs<T>(attrs: T): void {}
} }