docs: fix typescript error in code samples (#35641)
docs: fix typescript error in code samples (#35641)

Fixed typescript error
electron/electron,gerhardberger/electron,electron/electron,gerhardberger/electron,gerhardberger/electron,gerhardberger/electron,electron/electron,gerhardberger/electron,electron/electron,electron/electron,gerhardberger/electron,gerhardberger/electron,electron/electron,electron/electron