From a033b67687714d1c70754ee62aa7ab96104eea0e Mon Sep 17 00:00:00 2001 From: Otavio Jacobi Date: Tue, 3 Dec 2024 10:22:36 -0300 Subject: [PATCH] Update typescript from 5.6.3 to 5.7.2 Change-type: patch --- package.json | 2 +- src/sbvr-api/permissions.ts | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index d08ff75d5..3120a4dd6 100644 --- a/package.json +++ b/package.json @@ -104,7 +104,7 @@ "terser-webpack-plugin": "^5.3.10", "ts-loader": "^9.5.1", "ts-node": "^10.9.2", - "typescript": "^5.6.3", + "typescript": "^5.7.2", "webpack": "^5.95.0", "webpack-dev-server": "^5.0.0" }, diff --git a/src/sbvr-api/permissions.ts b/src/sbvr-api/permissions.ts index 61615d0bc..82c92537c 100644 --- a/src/sbvr-api/permissions.ts +++ b/src/sbvr-api/permissions.ts @@ -53,6 +53,8 @@ import { } from './uri-parser'; import memoizeWeak = require('memoizee/weak'); import type { Config } from '../config-loader/config-loader'; +import type { ODataOptions } from 'pinejs-client-core'; +import type { Permission } from './user'; // eslint-disable-next-line @typescript-eslint/no-var-requires const userModel: string = require('./user.sbvr'); @@ -1309,7 +1311,7 @@ const $getUserPermissions = (() => { $orderby: { name: 'asc', }, - }, + } as const, }, { userId: ['number'] }, ), @@ -1443,7 +1445,7 @@ const $getApiKeyPermissions = (() => { $orderby: { name: 'asc', }, - }, + } as const satisfies ODataOptions, }, { apiKey: ['string'] }, ),