How to use Preview version of office-js Excel API?
问题 I want to use Preview features of office-js Excel API (specifically DataValidation). This page says that I should use Beta version of the library and they provide a link but I have no idea what to do with it. What I did so far: I have added the js path to index.html . I copied types from ts file to file in node_modules . But it doesn't seem like a good solution since whenever I update @types/office-js I would also have to copy source again... 回答1: in order to use preview Api you only need: