Moved DeepPartial type from Core to Editor

This commit is contained in:
Lucas Dower 2023-10-10 22:31:03 +01:00
parent 6e5de859f9
commit 926862c7a9
4 changed files with 6 additions and 6 deletions

View File

@ -10,10 +10,6 @@ export type TTexelExtension = 'repeat' | 'clamp';
export type TTexelInterpolation = 'nearest' | 'linear';
export type DeepPartial<T> = T extends object ? {
[P in keyof T]?: DeepPartial<T[P]>;
} : T;
export type WrappedWarnings = {};
export type WrappedInfo = {}

View File

@ -1,4 +1,4 @@
import { DeepPartial } from '../../Core/src/util/type_util';
import { DeepPartial } from '../src/util/type_util';
import { en_GB } from './en_GB';
import { en_US } from './en_US';
import { fr_FR } from './fr_FR';

View File

@ -4,7 +4,8 @@ import { locales, TTranslationMap } from '../loc/base';
import { AppConfig } from './config';
import { EAppEvent, EventManager } from './event';
import { ASSERT } from '../../Core/src/util/error_util';
import { DeepPartial, TBrand } from '../../Core/src/util/type_util';
import { TBrand } from '../../Core/src/util/type_util';
import { DeepPartial } from './util/type_util';
// https://stackoverflow.com/questions/58277973/how-to-type-check-i18n-dictionaries-with-typescript

View File

@ -0,0 +1,3 @@
export type DeepPartial<T> = T extends object ? {
[P in keyof T]?: DeepPartial<T[P]>;
} : T;