async getType()

in src/internal/BinaryTypeStorage.ts [72:81]


    async getType(typeId: number, schemaId = null): Promise<BinaryType> {
        let storageType = this._types.get(typeId);
        if (!storageType || schemaId && !storageType.hasSchema(schemaId)) {
            storageType = await this._getBinaryType(typeId);
            if (storageType) {
                this._types.set(storageType.id, storageType);
            }
        }
        return storageType;
    }