Skip to content

Commit 8bde3d9

Browse files
committed
remove type
1 parent aec036b commit 8bde3d9

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

packages/core/src/utils-hoist/normalize.ts

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -302,17 +302,15 @@ export function normalizeUrlToBase(url: string, basePath: string): string {
302302
);
303303
}
304304

305-
type MemoFunc = [
305+
/**
306+
* Helper to decycle json objects
307+
*/
308+
function memoBuilder(): [
306309
// memoize
307310
(obj: object) => boolean,
308311
// unmemoize
309312
(obj: object) => void,
310-
];
311-
312-
/**
313-
* Helper to decycle json objects
314-
*/
315-
function memoBuilder(): MemoFunc {
313+
] {
316314
const inner = new WeakSet<object>();
317315
function memoize(obj: object): boolean {
318316
if (inner.has(obj)) {

0 commit comments

Comments
 (0)