Skip to content

Commit

Permalink
Fix type reference
Browse files Browse the repository at this point in the history
  • Loading branch information
Fryuni committed Apr 13, 2024
1 parent 721ab06 commit c8cb545
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/inline-mod/src/closure/inspectCode.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1153,7 +1153,9 @@ export function magicFactory<T extends Record<any, any>>({
) as unknown as T;
}

function tryExtractMagicFactory(value: any): MagicPlaceholder[typeof factorySymbol] | undefined {
function tryExtractMagicFactory(
value: any
): MagicPlaceholder<any>[typeof factorySymbol] | undefined {
if (factorySymbol in value) {
return value[factorySymbol];
}
Expand Down

0 comments on commit c8cb545

Please sign in to comment.