-
Notifications
You must be signed in to change notification settings - Fork 25
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Using excel.d.ts
in another project
#304
Comments
Hi @HoldYourWaffle, This came up in a Stack Overflow post a while back: https://stackoverflow.com/questions/71938117/excelscript-type-definnitions Basically, the type definitions are shipped with Excel. This repo maintains a [copy of the .d.ts file](https://github.com/OfficeDev/office-scripts-docs-reference/blob/main/generate-docs/script-inputs/excel.d.ts to generate the reference documentation. This is the most up-to-date publicly accessible version of the type definitions. If you're curious about the documentation generation, the process here is similar to that of the Office JS reference documentation, as documented here. I'm going to close this issue, since there's not an actionable work item. Feel free to keep the discussion going, though. |
Aaah interesting, that makes sense, thanks for the clarification! Are there any plans to publish these definitions as an npm package, like |
We actually discourage people from using the npm package for We have no plans to publish the |
That's good to know, thanks for the heads up! I'm looking into setting up a basic "traditional" development environment to work around office-scripts-docs#663 and various other limitations of the in-client editor (such as #305 and the lack of (reusable) modules). |
office-js-docs-reference
uses DT as the source of truth for its type definitions, which can be conveniently installed in a project with@types/office-js
. Is there an equivalent for Office Scripts?There seem to be two versions of
excel.d.ts
in this repository:declare
syntax)export
syntax)The latter seems to get generated based on the first by
GenerateDocs.sh
.Can this first file be considered a "source of truth", or is there a better place to get these type definitions from?
The text was updated successfully, but these errors were encountered: