2
0
mirror of https://github.com/esiur/esiur-js.git synced 2026-04-04 05:58:22 +00:00
This commit is contained in:
2022-09-18 23:58:24 +03:00
parent 735a19cda3
commit b198101e2d
5 changed files with 34 additions and 44 deletions

View File

@@ -3,8 +3,11 @@ import Warehouse from "../Resource/Warehouse.js";
export default class ResourceProxy {
static cache = {};
static getBase(type) {
if (type.baseType != null)
static getBaseType(type) {
if (type == null)
throw new Error("Type can't be null.");
if (type.baseType != null)
return type.baseType;
return type;