UNPKG

wechaty-puppet

Version:

Abstract Puppet for Wechaty

24 lines (18 loc) 656 B
import type { Constructor } from 'clone-class' import type { MixinProtectedProperty } from '../mixins/mod.js' import type { PuppetSkeletonProtectedProperty } from './puppet-skeleton.js' import type { Puppet } from './puppet-abstract.js' type PuppetProtectedProperty = | MixinProtectedProperty | PuppetSkeletonProtectedProperty // https://stackoverflow.com/questions/44983560/how-to-exclude-a-key-from-an-interface-in-typescript type PuppetInterface = Omit< Puppet, PuppetProtectedProperty | `_${string}` > type PuppetConstructor = Constructor<PuppetInterface> export type { PuppetProtectedProperty, PuppetConstructor, PuppetInterface, }