8 lines
207 B
TypeScript
8 lines
207 B
TypeScript
import {Type} from "./Utils";
|
|
|
|
export default interface Extendable<ComponentClass> {
|
|
as<C extends ComponentClass>(type: Type<C>): C;
|
|
|
|
asOptional<C extends ComponentClass>(type: Type<C>): C | null;
|
|
}
|