mirror of
https://github.com/LucasDower/ObjToSchematic.git
synced 2025-04-12 15:00:22 +08:00
Moved DeepPartial
type from Core
to Editor
This commit is contained in:
parent
6e5de859f9
commit
926862c7a9
@ -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 = {}
|
||||
|
@ -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';
|
||||
|
@ -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
|
||||
|
3
Editor/src/util/type_util.ts
Normal file
3
Editor/src/util/type_util.ts
Normal file
@ -0,0 +1,3 @@
|
||||
export type DeepPartial<T> = T extends object ? {
|
||||
[P in keyof T]?: DeepPartial<T[P]>;
|
||||
} : T;
|
Loading…
x
Reference in New Issue
Block a user