MCPcopy
hub / github.com/NervJS/nerv / Mixin

Interface Mixin

packages/nerv-create-class/src/index.ts:5–16  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3import { isFunction, isUndefined } from 'nerv-utils'
4
5export interface Mixin<P, S> extends ComponentLifecycle<P, S> {
6 statics?: {
7 [key: string]: any
8 }
9 mixins?: any
10
11 displayName?: string
12 propTypes?: { [index: string]: Function }
13
14 getDefaultProps? (): P
15 getInitialState? (): S
16}
17
18export interface ComponentClass<P, S> extends Mixin<P, S> {
19 propTypes?: {}

Callers 2

createClassFunction · 0.65
constructorMethod · 0.65

Calls

no outgoing calls

Tested by

no test coverage detected