7 lines
206 B
TypeScript
7 lines
206 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;
|
||
|
}
|