Skip to content

Commit de3f26c

Browse files
Copilotabraham
andauthored
Update TypeScript to v6 and add types to tsconfig.json
Agent-Logs-Url: https://github.com/abraham/mastodon-openapi/sessions/e6e7ffae-1110-48da-a609-6fe94c8c5b4a Co-authored-by: abraham <3341+abraham@users.noreply.github.com>
1 parent c9bed40 commit de3f26c

4 files changed

Lines changed: 17 additions & 16 deletions

File tree

dist/schema.json

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -33063,6 +33063,11 @@
3306333063
"description": "URLs of interest for clients apps.",
3306433064
"type": "object",
3306533065
"properties": {
33066+
"streaming": {
33067+
"description": "The Websockets URL for connecting to the streaming API.",
33068+
"type": "string",
33069+
"format": "uri"
33070+
},
3306633071
"about": {
3306733072
"description": "The URL of the server's about page.",
3306833073
"type": [
@@ -33087,14 +33092,6 @@
3308733092
],
3308833093
"format": "uri"
3308933094
},
33090-
"streaming": {
33091-
"description": "The Websockets URL for connecting to the streaming API.",
33092-
"type": [
33093-
"string",
33094-
"null"
33095-
],
33096-
"format": "uri"
33097-
},
3309833095
"terms_of_service": {
3309933096
"description": "The URL of the server's current terms of service, if any.",
3310033097
"type": [
@@ -33103,7 +33100,10 @@
3310333100
],
3310433101
"format": "uri"
3310533102
}
33106-
}
33103+
},
33104+
"required": [
33105+
"streaming"
33106+
]
3310733107
},
3310833108
"limited_federation": {
3310933109
"description": "Whether federation is limited to explicitly allowed domains.",
@@ -37495,7 +37495,7 @@
3749537495
},
3749637496
"most_recent_notification_id": {
3749737497
"description": "ID of the most recent notification in the group.",
37498-
"type": "integer"
37498+
"type": "string"
3749937499
},
3750037500
"notifications_count": {
3750137501
"description": "Total number of individual notifications that are part of this notification group.",

package-lock.json

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
"prettier": "^3.8.3",
4141
"ts-jest": "^29.4.9",
4242
"ts-node": "^10.9.0",
43-
"typescript": "^5.9.3"
43+
"typescript": "^6.0.0"
4444
},
4545
"dependencies": {
4646
"gray-matter": "^4.0.3"

tsconfig.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@
1212
"declaration": true,
1313
"declarationMap": true,
1414
"sourceMap": true,
15-
"resolveJsonModule": true
15+
"resolveJsonModule": true,
16+
"types": ["node", "jest"]
1617
},
1718
"include": ["src/**/*"],
1819
"exclude": ["node_modules", "dist", "**/*.test.ts"]

0 commit comments

Comments
 (0)