-
-
Notifications
You must be signed in to change notification settings - Fork 6.7k
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
Any plans for adding a typescript definition file? #495
Comments
Nope, it seems that nobody is working on it. But mermaid's API is crazy simple. I only use these two:
You can go ahead and create TS definition for them. |
Thanks, that is kind of what I ended up doing and forgot to post it here. |
There's now a community maintained TS file: https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/mermaid/index.d.ts |
PS on closed issue: The developer experience of creating custom themes would profit a lot from an officially maintained type declaration for the config. The community maintained file is unfortunately far from complete or correct in the Config object. The top level API is "dead simple", sure. The full nesting of the configuration and theming variables is everything but dead simple. |
* chore(deps): bump monaco-editor from 0.30.0 to 0.30.1 Bumps [monaco-editor](https://github.com/microsoft/monaco-editor) from 0.30.0 to 0.30.1. - [Release notes](https://github.com/microsoft/monaco-editor/releases) - [Changelog](https://github.com/microsoft/monaco-editor/blob/main/CHANGELOG.md) - [Commits](microsoft/monaco-editor@v0.30.0...v0.30.1) --- updated-dependencies: - dependency-name: monaco-editor dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> * Update Monaco-editor Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: mmorel-35 <mmorel-35@users.noreply.github.com>
I think I kind of need one, and I'd like to avoid duplicating work if there is already one available (even partially) anywhere.
The text was updated successfully, but these errors were encountered: