Skip to content
This repository has been archived by the owner on Nov 5, 2021. It is now read-only.

Generate and publish typings for package #50

Merged
merged 1 commit into from Dec 17, 2019

Conversation

ecraig12345
Copy link
Member

@ecraig12345 ecraig12345 commented Oct 26, 2019

Add "declaration": true to the tsconfig files so the package's typings will be generated and published. Fixes microsoft/monaco-editor#1491.

Background for this is that I'm working on a TypeScript+React live editor based on Monaco which uses the TypeScript worker to access transpiled code, so I'd like proper typings. I know there's already the handwritten monaco.d.ts in the package, but it doesn't work for me for a few reasons:

  • It declares a module (monaco.languages.typescript) into the global scope rather than being importable
  • It has to be updated manually
  • It's missing some of the typings I need, including references to TS

@alexdima alexdima added this to the December 2019 milestone Dec 17, 2019
@alexdima alexdima merged commit 33e9ac3 into microsoft:master Dec 17, 2019
@alexdima
Copy link
Member

Thank you! ❤️

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
2 participants