This commit is contained in:
		
							parent
							
								
									784f527a9e
								
							
						
					
					
						commit
						18a162c6d7
					
				
					 3 changed files with 8 additions and 3 deletions
				
			
		|  | @ -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>, | ||||
|  |  | |||
|  | @ -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; | ||||
|  |  | |||
|  | @ -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", | ||||
|  |  | |||
		Loading…
	
	Add table
		
		Reference in a new issue