Fix import of mithril for VnodeElementTag usage

This commit is contained in:
Alexander Skvortsov 2021-12-12 15:42:49 -05:00
parent 02a57bfa8e
commit cc69211977
No known key found for this signature in database
GPG Key ID: C4E3BBF9C3412B4C

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.