Cannot find namespace mendix for custom widget code

interface WrapperProps { "class"?: string; friendlyId: string; mxObject: mendix.lib.MxObject; style: string; } I am creating custom widget where I want to call nanoflow which is having date as parameter. How can i do that? Also facing above error in typescript for mendix mx object. How to resolve?
1 answers

You would have to install the Mendix Client API via NPM. Did you do that? Also add the mendix-client to your tsconfig file, like below:

  "extends": "./node_modules/@mendix/pluggable-widgets-tools/configs/tsconfig.base.json",
	"compilerOptions": {
		"jsx": "react",
        "types": [ "mendix-client" ],
		"lib": [