typeKey2Index(typeKey) {
	        const stack = this.lib.getOrAllocCallStack();
	        const typeKeyOffset = stack.allocRawBytes(typeKey.length + 1);
	        stack.storeRawBytes(typeKeyOffset, support.StringToUint8Array(typeKey));
	        const outOffset = stack.allocPtrArray(1);
	        const outPtr = stack.ptrFromOffset(outOffset);
	        stack.commitToWasmMemory(outOffset);
	        this.lib.checkCall(this.lib.exports.TVMObjectTypeKey2Index(stack.ptrFromOffset(typeKeyOffset), outPtr));
	        const typeIndex = this.memory.loadU32(outPtr);
	        this.lib.recycleCallStack(stack);
	        return typeIndex;
	    }
Get type index from type key.
@param typeKey The type key.
@returns The corresponding type index.