Skip to content

Commit

Permalink
⬆️ Upgrades Deps
Browse files Browse the repository at this point in the history
  • Loading branch information
ekwoka committed Jun 25, 2024
1 parent ad0944c commit ca791ea
Show file tree
Hide file tree
Showing 4 changed files with 561 additions and 922 deletions.
86 changes: 43 additions & 43 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
"lint:prettier": "prettier --write ./**/src/*",
"lint:staged": "lint-staged",
"precommit": "run-s lint:staged build size",
"prepare": "husky install",
"prepare": "husky",
"size": "node scripts/getSize.js",
"size:test": "NODE_ENV=test node scripts/getSize.js",
"test": "vitest",
Expand All @@ -35,27 +35,27 @@
},
"devDependencies": {
"@milahu/patch-package": "6.4.14",
"@trivago/prettier-plugin-sort-imports": "4.2.1",
"@types/node": "20.8.8",
"@typescript-eslint/eslint-plugin": "6.9.0",
"@typescript-eslint/parser": "6.9.0",
"@vitest/coverage-c8": "0.32.2",
"@trivago/prettier-plugin-sort-imports": "4.3.0",
"@types/node": "20.14.8",
"@typescript-eslint/eslint-plugin": "7.14.1",
"@typescript-eslint/parser": "7.14.1",
"@vitest/coverage-v8": "1.6.0",
"alpinets": "workspace:*",
"esbuild": "0.19.5",
"esbuild": "0.21.5",
"eslint": "8.52.0",
"happy-dom": "9.1.9",
"husky": "8.0.3",
"lint-staged": "15.0.2",
"husky": "9.0.11",
"lint-staged": "15.2.7",
"npm-run-all": "4.1.5",
"prettier": "3.0.3",
"prettier": "3.3.2",
"pretty-bytes": "6.1.1",
"typescript": "5.2.2",
"vite": "4.5.0",
"vite-plugin-dts": "3.6.1",
"vite-plugin-external-deps": "0.0.2",
"vite-plugin-workspace-source": "0.0.1",
"vite-tsconfig-paths": "4.2.1",
"vitest": "0.34.6",
"typescript": "5.5.2",
"vite": "5.3.1",
"vite-plugin-dts": "3.9.1",
"vite-plugin-external-deps": "0.0.3",
"vite-plugin-workspace-source": "0.0.3",
"vite-tsconfig-paths": "4.3.2",
"vitest": "1.6.0",
"vitest-dom": "0.1.1"
},
"lint-staged": {
Expand All @@ -79,35 +79,35 @@
},
"pnpm": {
"overrides": {
"typescript@<5.2.2": "5.2.2",
"typescript": "$typescript",
"semver@<7.5.4": ">=7.5.4",
"happy-dom@>9.1.9": "9.1.9",
"@babel/traverse@<7.23.2": ">=7.23.2",
"esbuild@<0.19.5": "0.19.5",
"@esbuild/android-arm@<0.19.5": "0.19.5",
"@esbuild/android-arm64@<0.19.5": "0.19.5",
"@esbuild/android-x64@<0.19.5": "0.19.5",
"@esbuild/darwin-arm64@<0.19.5": "0.19.5",
"@esbuild/darwin-x64@<0.19.5": "0.19.5",
"@esbuild/freebsd-arm64@<0.19.5": "0.19.5",
"@esbuild/freebsd-x64@<0.19.5": "0.19.5",
"@esbuild/linux-arm@<0.19.5": "0.19.5",
"@esbuild/linux-arm64@<0.19.5": "0.19.5",
"@esbuild/linux-ia32@<0.19.5": "0.19.5",
"@esbuild/linux-loong64@<0.19.5": "0.19.5",
"@esbuild/linux-mips64el@<0.19.5": "0.19.5",
"@esbuild/linux-ppc64@<0.19.5": "0.19.5",
"@esbuild/linux-riscv64@<0.19.5": "0.19.5",
"@esbuild/linux-s390x@<0.19.5": "0.19.5",
"@esbuild/linux-x64@<0.19.5": "0.19.5",
"@esbuild/netbsd-x64@<0.19.5": "0.19.5",
"@esbuild/openbsd-x64@<0.19.5": "0.19.5",
"@esbuild/sunos-x64@<0.19.5": "0.19.5",
"@esbuild/win32-arm64@<0.19.5": "0.19.5",
"@esbuild/win32-ia32@<0.19.5": "0.19.5",
"@esbuild/win32-x64@<0.19.5": "0.19.5",
"vite@=4.5.0": ">=4.5.1",
"vite@>=4.0.0 <=4.5.1": ">=4.5.2"
"esbuild": "$esbuild",
"@esbuild/android-arm": "$esbuild",
"@esbuild/android-arm64": "$esbuild",
"@esbuild/android-x64": "$esbuild",
"@esbuild/darwin-arm64": "$esbuild",
"@esbuild/darwin-x64": "$esbuild",
"@esbuild/freebsd-arm64": "$esbuild",
"@esbuild/freebsd-x64": "$esbuild",
"@esbuild/linux-arm": "$esbuild",
"@esbuild/linux-arm64": "$esbuild",
"@esbuild/linux-ia32": "$esbuild",
"@esbuild/linux-loong64": "$esbuild",
"@esbuild/linux-mips64el": "$esbuild",
"@esbuild/linux-ppc64": "$esbuild",
"@esbuild/linux-riscv64": "$esbuild",
"@esbuild/linux-s390x": "$esbuild",
"@esbuild/linux-x64": "$esbuild",
"@esbuild/netbsd-x64": "$esbuild",
"@esbuild/openbsd-x64": "$esbuild",
"@esbuild/sunos-x64": "$esbuild",
"@esbuild/win32-arm64": "$esbuild",
"@esbuild/win32-ia32": "$esbuild",
"@esbuild/win32-x64": "$esbuild",
"vite": "$vite",
"braces@<3.0.3": ">=3.0.3"
}
}
}
15 changes: 8 additions & 7 deletions packages/alpinets/src/interceptor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,13 +45,14 @@ export type InterceptorObject<T = unknown> = {
initialize: (data: Record<string, unknown>, path: string, key: string) => T;
};

type InferInterceptor<T> = T extends InterceptorObject<infer U>
? U
: T extends Record<string | number | symbol, unknown>
? {
[K in keyof T]: InferInterceptor<T[K]>;
}
: T;
type InferInterceptor<T> =
T extends InterceptorObject<infer U>
? U
: T extends Record<string | number | symbol, unknown>
? {
[K in keyof T]: InferInterceptor<T[K]>;
}
: T;

export type InferInterceptors<T> = {
[K in keyof T]: InferInterceptor<T[K]>;
Expand Down
Loading

0 comments on commit ca791ea

Please sign in to comment.