Skip to content

Commit 27652b6

Browse files
committed
📘 doc: document change
1 parent 20d549b commit 27652b6

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

package.json

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -12,24 +12,24 @@
1212
"exports": {
1313
"./package.json": "./package.json",
1414
".": {
15-
"require": "./dist/index.js",
15+
"types": "./dist/index.d.ts",
1616
"import": "./dist/index.mjs",
17-
"types": "./dist/index.d.ts"
17+
"require": "./dist/index.js"
1818
},
1919
"./treaty": {
20-
"require": "./dist/treaty.js",
20+
"types": "./dist/treaty/index.d.ts",
2121
"import": "./dist/treaty.mjs",
22-
"types": "./dist/treaty/index.d.ts"
22+
"require": "./dist/treaty.js"
2323
},
2424
"./treaty2": {
25-
"require": "./dist/2.js",
25+
"types": "./dist/treaty2/index.d.ts",
2626
"import": "./dist/treaty2.mjs",
27-
"types": "./dist/treaty2/index.d.ts"
27+
"require": "./dist/treaty2.js"
2828
},
2929
"./fetch": {
30-
"require": "./dist/fetch.js",
30+
"types": "./dist/fetch/index.d.ts",
3131
"import": "./dist/fetch.mjs",
32-
"types": "./dist/fetch/index.d.ts"
32+
"require": "./dist/fetch.js"
3333
}
3434
},
3535
"types": "./dist/index.d.ts",

test/types/treaty2.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1209,7 +1209,7 @@ type ValidationError = {
12091209
}
12101210

12111211
{
1212-
const app = new Elysia().get('/', () => status(299, 'yay'))
1212+
const app = new Elysia().get('/', () => status(201, 'yay'))
12131213

12141214
type App = typeof app
12151215

0 commit comments

Comments
 (0)