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. |  * This is an experimental serialized model type declaration. | ||||||
|  * @deprecated |  * @deprecated | ||||||
|  */ |  */ | ||||||
|  | // eslint-disable-next-line @typescript-eslint/no-unused-vars
 | ||||||
| type ExperimentalSerializedModel< | type ExperimentalSerializedModel< | ||||||
| 	T extends object, | 	T extends object, | ||||||
| 	Shape extends ModelShape<T>, | 	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. | 	 * Reset the difference between the original value and the current one. | ||||||
| 	 * @param value Value for which reset diff data. | 	 * @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.
 | 		// By default, nothing to do.
 | ||||||
| 	} | 	} | ||||||
| 
 | 
 | ||||||
|  | @ -77,6 +80,7 @@ export abstract class Type<SerializedType, ModelType> { | ||||||
| 	applyPatch<T extends ModelType>( | 	applyPatch<T extends ModelType>( | ||||||
| 		currentValue: T | null | undefined, | 		currentValue: T | null | undefined, | ||||||
| 		patchValue: SerializedType | null | undefined, | 		patchValue: SerializedType | null | undefined, | ||||||
|  | 		// eslint-disable-next-line @typescript-eslint/no-unused-vars
 | ||||||
| 		updateOriginals: boolean, | 		updateOriginals: boolean, | ||||||
| 	): T | null | undefined { | 	): T | null | undefined { | ||||||
| 		return this.deserialize(patchValue) as T; | 		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"; | import dts from "vite-plugin-dts"; | ||||||
| 
 | 
 | ||||||
| // https://vitejs.dev/config/
 | // https://vitejs.dev/config/
 | ||||||
| 
 | 
 | ||||||
| export default defineConfig(({mode}: ConfigEnv): UserConfig => { | export default defineConfig((): UserConfig => { | ||||||
| 	return { | 	return { | ||||||
| 		build: { | 		build: { | ||||||
| 			outDir: "lib", | 			outDir: "lib", | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		
		Reference in a new issue