astro-ghostcms/.pnpm-store/v3/files/ad/d8ad6fff5d231f7581b7a9360e4...

14 lines
321 B
Plaintext

/**
* 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