@drincs/pixi-vn
Version:
Pixi'VN is a npm package that provides various features for creating visual novels.
15 lines (13 loc) • 845 B
text/typescript
type StorageElementPrimaryType = string | number | boolean | undefined | null | StorageElementPrimaryType[];
type StorageElementInternalType = StorageElementPrimaryType | Record<string | number | symbol, StorageElementPrimaryType> | StorageElementInternalType[];
/**
* StorageElementType are all the types that can be stored in the storage
*/
type StorageElementType = StorageElementInternalType | Record<string | number | symbol, StorageElementInternalType> | {
[key: string | number | symbol]: StorageElementType;
} | StorageObjectType[] | (StorageElementPrimaryType | StorageElementInternalType | StorageElementType)[];
/**
* StorageObjectType are all the types that can be stored in the storage
*/
type StorageObjectType = Record<string | number | symbol, StorageElementType>;
export type { StorageElementType, StorageObjectType };