mirror of
https://github.com/flarum/core.git
synced 2025-08-09 18:07:02 +02:00
Bundled output for commit 3537f76eab
Includes transpiled JS/TS, and Typescript declaration files (typings). [skip ci]
This commit is contained in:
12
js/dist-typings/common/utils/mixin.d.ts
vendored
Normal file
12
js/dist-typings/common/utils/mixin.d.ts
vendored
Normal file
@@ -0,0 +1,12 @@
|
||||
/**
|
||||
* The `mixin` utility assigns the properties of a set of 'mixin' objects to
|
||||
* the prototype of a parent object.
|
||||
*
|
||||
* @example
|
||||
* class MyClass extends mixin(ExistingClass, evented, etc) {}
|
||||
*
|
||||
* @param {Class} Parent The class to extend the new class from.
|
||||
* @param {...Object} mixins The objects to mix in.
|
||||
* @return {Class} A new class that extends Parent and contains the mixins.
|
||||
*/
|
||||
export default function mixin(Parent: any, ...mixins: Object[]): any;
|
Reference in New Issue
Block a user