diff --git a/.changeset/small-parents-press.md b/.changeset/small-parents-press.md new file mode 100644 index 0000000000..4398fd2ec9 --- /dev/null +++ b/.changeset/small-parents-press.md @@ -0,0 +1,5 @@ +--- +"@blitzjs/generator": patch +--- + +Remove `views` property from `Session.PublicData` in `types.ts` file again diff --git a/apps/toolkit-app-passportjs/types.ts b/apps/toolkit-app-passportjs/types.ts index e531a28839..bead91f252 100644 --- a/apps/toolkit-app-passportjs/types.ts +++ b/apps/toolkit-app-passportjs/types.ts @@ -9,7 +9,6 @@ declare module "@blitzjs/auth" { PublicData: { userId: User["id"] role: Role - views?: number } } } diff --git a/apps/toolkit-app/types.ts b/apps/toolkit-app/types.ts index e531a28839..bead91f252 100644 --- a/apps/toolkit-app/types.ts +++ b/apps/toolkit-app/types.ts @@ -9,7 +9,6 @@ declare module "@blitzjs/auth" { PublicData: { userId: User["id"] role: Role - views?: number } } } diff --git a/apps/web/types.ts b/apps/web/types.ts index a0b8b5c34c..5042db02e6 100644 --- a/apps/web/types.ts +++ b/apps/web/types.ts @@ -9,7 +9,6 @@ declare module "@blitzjs/auth" { PublicData: { userId: User["id"] role: Role - views?: number } } } diff --git a/integration-tests/auth-with-rpc/types.ts b/integration-tests/auth-with-rpc/types.ts index dbc0b34ffc..8b032d9253 100644 --- a/integration-tests/auth-with-rpc/types.ts +++ b/integration-tests/auth-with-rpc/types.ts @@ -9,7 +9,6 @@ declare module "@blitzjs/auth" { PublicData: { userId: User["id"] role: Role - views?: number } } } diff --git a/integration-tests/auth/types.ts b/integration-tests/auth/types.ts index dbc0b34ffc..8b032d9253 100644 --- a/integration-tests/auth/types.ts +++ b/integration-tests/auth/types.ts @@ -9,7 +9,6 @@ declare module "@blitzjs/auth" { PublicData: { userId: User["id"] role: Role - views?: number } } } diff --git a/integration-tests/get-initial-props/types.ts b/integration-tests/get-initial-props/types.ts index dbc0b34ffc..8b032d9253 100644 --- a/integration-tests/get-initial-props/types.ts +++ b/integration-tests/get-initial-props/types.ts @@ -9,7 +9,6 @@ declare module "@blitzjs/auth" { PublicData: { userId: User["id"] role: Role - views?: number } } } diff --git a/integration-tests/next-13-app-dir/types.ts b/integration-tests/next-13-app-dir/types.ts index dbc0b34ffc..8b032d9253 100644 --- a/integration-tests/next-13-app-dir/types.ts +++ b/integration-tests/next-13-app-dir/types.ts @@ -9,7 +9,6 @@ declare module "@blitzjs/auth" { PublicData: { userId: User["id"] role: Role - views?: number } } } diff --git a/integration-tests/no-suspense/types.ts b/integration-tests/no-suspense/types.ts index dbc0b34ffc..8b032d9253 100644 --- a/integration-tests/no-suspense/types.ts +++ b/integration-tests/no-suspense/types.ts @@ -9,7 +9,6 @@ declare module "@blitzjs/auth" { PublicData: { userId: User["id"] role: Role - views?: number } } } diff --git a/integration-tests/trailing-slash/types.ts b/integration-tests/trailing-slash/types.ts index dbc0b34ffc..8b032d9253 100644 --- a/integration-tests/trailing-slash/types.ts +++ b/integration-tests/trailing-slash/types.ts @@ -9,7 +9,6 @@ declare module "@blitzjs/auth" { PublicData: { userId: User["id"] role: Role - views?: number } } } diff --git a/packages/generator/templates/app/types.ts b/packages/generator/templates/app/types.ts index 452fe3411f..f48ceba3a4 100644 --- a/packages/generator/templates/app/types.ts +++ b/packages/generator/templates/app/types.ts @@ -9,7 +9,6 @@ declare module "@blitzjs/auth" { PublicData: { userId: User["id"] role: Role - views?: number } } }