3

Really sorry if this has been answered somewhere… Does anyone know if a @types/ npm library exists for ExcelScript? Or even an ExcelScript.d.ts file somewhere?

Ben Koplin
  • 31
  • 1
  • It's not open source so I don't think so. This is as close as you'll come I'd say ... https://learn.microsoft.com/en-us/javascript/api/office-scripts/excelscript?view=office-scripts ... happy to be proven wrong. – Skin Apr 20 '22 at 11:34

2 Answers2

2

The type definitions for Office Scripts are not open source. A copy of those definitions is used to generate the reference documentation. It is updated shortly after the internal definitions are updated. You can find a public copy of the .d.ts file here: https://github.com/OfficeDev/office-scripts-docs-reference/blob/main/generate-docs/script-inputs/excel.d.ts

Alexander Jerabek
  • 358
  • 1
  • 3
  • 10
1

Sumurthy on GitHub wrote a file, index.d.ts, to do this. You can take a look at that file here.

Brian Gonzalez
  • 1,178
  • 1
  • 3
  • 15