mirror of
https://github.com/sern-handler/website
synced 2026-06-27 18:22:22 +00:00
14 lines
321 B
TypeScript
14 lines
321 B
TypeScript
/**
|
|
* Create a subclass that can be modified without affecting the super class.
|
|
*
|
|
* @template {{prototype: object, new (...args: any[]): any}} Class
|
|
* @param {Class} Super
|
|
* @return {Class}
|
|
*/
|
|
export function unherit<
|
|
Class extends {
|
|
new (...args: any[]): any
|
|
prototype: object
|
|
}
|
|
>(Super: Class): Class
|