fix: type in pluginImportsFunctionMap (#4517)

This commit is contained in:
Alex Yang 2023-09-26 20:53:01 -05:00 committed by GitHub
parent 369db3fea5
commit a69820e4ca
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -169,7 +169,10 @@ function createSetupImpl(rootStore: ReturnType<typeof createStore>) {
Map<string, Map<string, any>>
>();
const pluginImportsFunctionMap = new Map<string, (imports: any) => void>();
const pluginImportsFunctionMap = new Map<
string,
(newUpdaters: [string, [string, ((val: any) => void)[]][]][]) => void
>();
const createImports = (pluginName: string) => {
if (pluginImportsFunctionMap.has(pluginName)) {
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion