Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Export auth namespace on enhance.d.ts #1412

Merged
merged 27 commits into from
May 7, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
ff8b691
merge dev to main (v1.8.0) (#975)
ymc9 Jan 31, 2024
cde8966
merge dev to main (v1.8.0) (#978)
ymc9 Feb 1, 2024
a658f27
merge dev to main (v1.8.1) (#980)
ymc9 Feb 1, 2024
c3f490a
merge dev to main (v1.8.2) (#989)
ymc9 Feb 10, 2024
d0eaf25
merge dev to main (v1.9.0) (#1000)
ymc9 Feb 17, 2024
0dfc81f
merge dev to main (v1.10.0) (#1069)
ymc9 Mar 2, 2024
8c9b80d
merge dev to main (sponsors and contributors) (#1071)
ymc9 Mar 2, 2024
38c071a
merge dev to main (v1.10.1) (#1099)
ymc9 Mar 8, 2024
bda1551
merge dev to main (v1.10.2) (#1103)
ymc9 Mar 8, 2024
bb87973
merge dev to main (v1.10.3) (#1106)
ymc9 Mar 9, 2024
336abf4
merge dev to main (remove short.io links) (#1120)
ymc9 Mar 10, 2024
599444c
merge dev to main (v1.11.0) (#1146)
ymc9 Mar 16, 2024
242ed43
merge dev to main (v1.11.1) (#1164)
ymc9 Mar 20, 2024
ac60a6a
merge dev to main (#1166)
ymc9 Mar 20, 2024
dfa6cb4
merge dev to main (v1.12.0) (#1190)
ymc9 Mar 31, 2024
4ef45ff
merge dev to main (v1.12.1) (#1217)
ymc9 Apr 8, 2024
254ef39
merge dev to main (v1.12.2) (#1239)
ymc9 Apr 11, 2024
2ce8b9b
merge dev to main (v1.12.3) (#1247)
ymc9 Apr 12, 2024
d08dd82
merge dev to main (1.12.4) (#1275)
ymc9 Apr 21, 2024
c3a40f1
merge dev to main (v2.0.0) (#1282)
ymc9 Apr 24, 2024
87086e7
merge dev to main (#1340)
ymc9 Apr 24, 2024
2d4f330
merge dev to main (#1372)
ymc9 Apr 24, 2024
3291c6e
merge dev to main (v2.0.1) (#1384)
ymc9 Apr 26, 2024
96390fd
merge dev to main (v2.0.2) (#1395)
ymc9 May 1, 2024
7ab07cd
merge dev to main (v2.0.3) (#1409)
ymc9 May 4, 2024
b22b1e0
Export auth namespace on enhance.d.ts
israelins85 May 6, 2024
e86a112
Generate with export namespace auth
israelins85 May 7, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion packages/runtime/src/enhance.d.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
// @ts-expect-error stub for re-exporting generated code
export { enhance } from '.zenstack/enhance';
export { auth, enhance } from '.zenstack/enhance';
israelins85 marked this conversation as resolved.
Show resolved Hide resolved
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ export function generateAuthType(model: Model, authModel: DataModel) {
// }
// `

return `namespace auth {
return `export namespace auth {
type WithRequired<T, K extends keyof T> = T & { [P in K]-?: T[P] };
${Array.from(types.entries())
.map(([model, fields]) => {
Expand Down
Loading