Skip to content

Commit 7432f92

Browse files
committed
🎉 feat: beta.2
1 parent 55c8ca2 commit 7432f92

File tree

6 files changed

+9
-6
lines changed

6 files changed

+9
-6
lines changed

bun.lockb

0 Bytes
Binary file not shown.

example/schema.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,10 @@ const app = new Elysia()
1616
profile: t.Object({
1717
name: t.String()
1818
})
19-
})
20-
// response: {
21-
// 200: t.Number()
22-
// }
19+
}),
20+
response: {
21+
200: t.Number()
22+
}
2323
}
2424
})
2525
// Strictly validate query, params, and body

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,6 @@
4545
"bun-types": "^0.3.0",
4646
"eslint": "^8.29.0",
4747
"rimraf": "^3.0.2",
48-
"typescript": "^4.9.3"
48+
"typescript": "^4.9.4"
4949
}
5050
}

src/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1425,6 +1425,7 @@ export default class Elysia<Instance extends ElysiaInstance = ElysiaInstance> {
14251425

14261426
export { Elysia, Router }
14271427
export { Type as t } from '@sinclair/typebox'
1428+
14281429
export {
14291430
SCHEMA,
14301431
getPath,

tsconfig.esm.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,5 +100,6 @@
100100
// "skipDefaultLibCheck": true, /* Skip type checking .d.ts files that are included with TypeScript. */
101101
"skipLibCheck": true, /* Skip type checking all .d.ts files. */
102102
},
103-
"include": ["src/**/*"]
103+
"include": ["src/**/*"],
104+
// "exclude": ["node_modules"]
104105
}

tsconfig.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,5 +100,6 @@
100100
// "skipDefaultLibCheck": true, /* Skip type checking .d.ts files that are included with TypeScript. */
101101
"skipLibCheck": true, /* Skip type checking all .d.ts files. */
102102
},
103+
"exclude": ["node_modules"]
103104
// "include": ["src/**/*"]
104105
}

0 commit comments

Comments
 (0)