Skip to content

Commit d68675b

Browse files
authored
chore(ts): update strict mode (#5)
1 parent 99ff7f8 commit d68675b

File tree

7 files changed

+17
-19
lines changed

7 files changed

+17
-19
lines changed

package-lock.json

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

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@
77
"start": "wattpm start"
88
},
99
"dependencies": {
10-
"@platformatic/composer": "^2.27.1",
11-
"@platformatic/runtime": "^2.27.1",
12-
"wattpm": "^2.27.1"
10+
"@platformatic/composer": "^2.30.0",
11+
"@platformatic/runtime": "^2.30.0",
12+
"wattpm": "^2.30.0"
1313
},
1414
"workspaces": [
1515
"web/*",

web/backend/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"typescript": "^5.5.4"
1414
},
1515
"dependencies": {
16-
"@platformatic/control": "^2.27.1",
17-
"@platformatic/service": "^2.27.1"
16+
"@platformatic/control": "^2.30.0",
17+
"@platformatic/service": "^2.30.0"
1818
}
1919
}

web/backend/routes/root.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
/// <reference path="../global.d.ts" />
22
import { FastifyInstance, FastifyPluginOptions } from 'fastify'
33
import { JsonSchemaToTsProvider } from '@fastify/type-provider-json-schema-to-ts'
4-
// TODO: create types for RuntimeApiClient and re-enable strict mode
54
import { RuntimeApiClient } from '@platformatic/control'
65

76
declare module 'fastify' {
@@ -29,10 +28,9 @@ export default async function (fastify: FastifyInstance, opts: FastifyPluginOpti
2928
}, async (request, reply) => {
3029
let runtimes = await api.getRuntimes()
3130

32-
console.log(request.query.includeAdmin)
33-
3431
if (!request.query.includeAdmin) {
35-
runtimes = runtimes.filter((runtime) => runtime.packageName !== 'watt-admin')
32+
// FIXME: remove `any` once the proper type is passed from `@platformatic/control`
33+
runtimes = runtimes.filter((runtime: any) => runtime.packageName !== 'watt-admin')
3634
}
3735

3836
return runtimes

web/backend/tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"pretty": true,
88
"noEmitOnError": true,
99
"incremental": true,
10-
"strict": false,
10+
"strict": true,
1111
"outDir": "dist",
1212
"skipLibCheck": true
1313
},

web/composer/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,6 @@
1212
"typescript": "^5.5.4"
1313
},
1414
"dependencies": {
15-
"@platformatic/composer": "^2.27.1"
15+
"@platformatic/composer": "^2.30.0"
1616
}
1717
}

web/frontend/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
"dependencies": {
1313
"react": "^18.3.1",
1414
"react-dom": "^18.3.1",
15-
"@platformatic/vite": "^2.27.1"
15+
"@platformatic/vite": "^2.30.0"
1616
},
1717
"devDependencies": {
1818
"@eslint/js": "^9.13.0",

0 commit comments

Comments
 (0)