mirror of
https://github.com/flarum/core.git
synced 2025-08-05 07:57:46 +02:00
Extend documentation
This commit is contained in:
@@ -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 {}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user