Skip to content

Commit

Permalink
feat: upgrade from typescript 5.4.5 to 5.5
Browse files Browse the repository at this point in the history
  • Loading branch information
AlessioGr committed Jun 21, 2024
1 parent d66b348 commit 3bd3027
Show file tree
Hide file tree
Showing 5 changed files with 104 additions and 152 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@
"ts-node": "10.9.1",
"tsx": "^4.7.1",
"turbo": "^1.13.3",
"typescript": "5.4.5",
"typescript": "5.5.2",
"uuid": "10.0.0"
},
"peerDependencies": {
Expand Down
6 changes: 3 additions & 3 deletions packages/payload/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -595,7 +595,7 @@ export const getPayload = async (options: InitOptions): Promise<BasePayload<Gene
return cached.payload
}

type GeneratedTypes = {
export interface GeneratedTypes {
collections: {
[slug: number | string | symbol]: TypeWithID & Record<string, unknown>
}
Expand All @@ -612,9 +612,9 @@ interface RequestContext {
[key: string]: unknown
}

type DatabaseAdapter = BaseDatabaseAdapter
export interface DatabaseAdapter extends BaseDatabaseAdapter {}

export type { DatabaseAdapter, GeneratedTypes, Payload, RequestContext }
export type { Payload, RequestContext }

export * from './types/index.js'
export type * from './admin/types.js'
Expand Down
2 changes: 1 addition & 1 deletion packages/translations/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
"@types/react-dom": "npm:types-react-dom@19.0.0-beta.2",
"dotenv": "16.4.5",
"prettier": "^3.0.3",
"typescript": "5.4.5"
"typescript": "5.5.2"
},
"publishConfig": {
"exports": {
Expand Down
Loading

0 comments on commit 3bd3027

Please sign in to comment.