Fix import of mithril for VnodeElementTag usage

This commit is contained in:
Alexander Skvortsov 2021-12-12 15:42:49 -05:00
parent e79d3bc3b7
commit a8db0b7bb2

View File

@ -21,7 +21,7 @@ declare type KeysOfType<Type extends object, Match> = {
*/
declare type KeyOfType<Type extends object, Match> = KeysOfType<Type, Match>[keyof Type];
declare type VnodeElementTag<Attrs = Record<string, unknown>, State = Record<string, unknown>> = string | ComponentTypes<Attrs, State>;
declare type VnodeElementTag<Attrs = Record<string, unknown>, State = Record<string, unknown>> = string | import('mithril').ComponentTypes<Attrs, State>;
/**
* @deprecated Please import `app` from a namespace instead of using it as a global variable.