Skip to content

Commit 8e923cd

Browse files
committed
fix-type
1 parent 6375778 commit 8e923cd

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "next-approuter-context",
3-
"version": "0.0.8",
3+
"version": "0.0.9",
44
"main": "./dist/cjs/index.js",
55
"types": "./dist/cjs/index.d.ts",
66
"exports": {
@@ -16,7 +16,7 @@
1616
"lint:fix": "eslint --fix ./src"
1717
},
1818
"devDependencies": {
19-
"@types/node": "20.9.4",
19+
"@types/node": "20.10.0",
2020
"@types/react": "^18.2.38",
2121
"@typescript-eslint/eslint-plugin": "^6.12.0",
2222
"@typescript-eslint/parser": "^6.12.0",

src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,5 +23,5 @@ export const createMixContext = <T>(name: string) => {
2323
getComponentType() === "Server"
2424
? createMixServerContext<T>(name)
2525
: { name };
26-
return context as typeof context & { type: T };
26+
return context as ReturnType<typeof createMixServerContext<T>> & { type: T };
2727
};

yarn.lock

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -163,10 +163,10 @@
163163
resolved "https://registry.yarnpkg.com/@types/json5/-/json5-0.0.29.tgz#ee28707ae94e11d2b827bcbe5270bcea7f3e71ee"
164164
integrity sha512-dRLjCWHYg4oaA77cxO64oO+7JwCwnIzkZPdrrC71jQmQtlhM556pwKo5bUzqvZndkVbeFLIIi+9TC40JNF5hNQ==
165165

166-
"@types/node@20.9.4":
167-
version "20.9.4"
168-
resolved "https://registry.yarnpkg.com/@types/node/-/node-20.9.4.tgz#cc8f970e869c26834bdb7ed480b30ede622d74c7"
169-
integrity sha512-wmyg8HUhcn6ACjsn8oKYjkN/zUzQeNtMy44weTJSM6p4MMzEOuKbA3OjJ267uPCOW7Xex9dyrNTful8XTQYoDA==
166+
"@types/node@20.10.0":
167+
version "20.10.0"
168+
resolved "https://registry.yarnpkg.com/@types/node/-/node-20.10.0.tgz#16ddf9c0a72b832ec4fcce35b8249cf149214617"
169+
integrity sha512-D0WfRmU9TQ8I9PFx9Yc+EBHw+vSpIub4IDvQivcp26PtPrdMGAq5SDcpXEo/epqa/DXotVpekHiLNTg3iaKXBQ==
170170
dependencies:
171171
undici-types "~5.26.4"
172172

0 commit comments

Comments
 (0)