Type Alias WithoutStaticData<C, B>
WithoutStaticData: C & {
readonly [K in Exclude<keyof C, keyof B> as C[K] extends | (
(...args: never) => unknown
)
| (abstract new (...args: never) => unknown)
? never
: K]: never
}
readonly [K in Exclude<keyof C, keyof B> as C[K] extends | (
(...args: never) => unknown
)
| (abstract new (...args: never) => unknown)
? never
: K]: never
}
Type Parameters
- C
The class.
- B
Its base class, such as
typeof Step.
The class
Conce it keeps no static data: every public static member it adds to those of its base classB, its own or inherited, is a function, such as a method. A step, a rescue step or a policy compiles only as such a class, since everything built from it would share a static property holding anything else; the error names the property. Aprotectedorprivatestatic, which no type can see, and a static accessor typed as a function compile, but are refused when the class is declared or its builder is started.