Fix remaining eslint errors.
All checks were successful
/ test (push) Successful in 38s

This commit is contained in:
Madeorsk 2025-06-28 23:01:14 +02:00
parent 784f527a9e
commit 18a162c6d7
Signed by: Madeorsk
GPG key ID: 677E51CA765BB79F
3 changed files with 8 additions and 3 deletions

View file

@ -29,6 +29,7 @@ export type SerializedModel<T extends object, Shape extends ModelShape<T>> = {
* This is an experimental serialized model type declaration.
* @deprecated
*/
// eslint-disable-next-line @typescript-eslint/no-unused-vars
type ExperimentalSerializedModel<
T extends object,
Shape extends ModelShape<T>,

View file

@ -32,7 +32,10 @@ export abstract class Type<SerializedType, ModelType> {
* Reset the difference between the original value and the current one.
* @param value Value for which reset diff data.
*/
resetDiff(value: ModelType | null | undefined): void {
resetDiff(
// eslint-disable-next-line @typescript-eslint/no-unused-vars
value: ModelType | null | undefined,
): void {
// By default, nothing to do.
}
@ -77,6 +80,7 @@ export abstract class Type<SerializedType, ModelType> {
applyPatch<T extends ModelType>(
currentValue: T | null | undefined,
patchValue: SerializedType | null | undefined,
// eslint-disable-next-line @typescript-eslint/no-unused-vars
updateOriginals: boolean,
): T | null | undefined {
return this.deserialize(patchValue) as T;

View file

@ -1,9 +1,9 @@
import {ConfigEnv, defineConfig, UserConfig} from "vite";
import {defineConfig, UserConfig} from "vite";
import dts from "vite-plugin-dts";
// https://vitejs.dev/config/
export default defineConfig(({mode}: ConfigEnv): UserConfig => {
export default defineConfig((): UserConfig => {
return {
build: {
outDir: "lib",