'ExcelScript Type Definnitions

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?



Solution 1:[1]

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

Solution 2:[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

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Brian Gonzalez
Solution 2 Alexander Jerabek