Teradata / covalent

Teradata UI Platform built on Angular Material
https://teradata.github.io/covalent/
MIT License
2.23k stars 358 forks source link

Provide EasyMDE typings #1670

Closed KingDarBoja closed 2 years ago

KingDarBoja commented 4 years ago

In order to end users to know which options are available while coding (e.g. using Intellisense on VSCode), would be great to provide the EasyMDE typing definition in this package.

In the meantime, had to install easymde along with @types/marked and @types/codemirror to get type hints.

app.component.ts

import { Component } from '@angular/core';

import { Options } from 'easymde';

@Component({
  selector: 'app-root',
  templateUrl: './app.component.html',
  styleUrls: ['./app.component.css']
})
export class AppComponent {
  title = 'covalent-editor-fu';

  sampleText = 'Hello World!';

  covalentEditorOpts: Options = {
    lineWrapping: true,
    toolbar: true,
  };
}
owilliams320 commented 2 years ago

see https://github.com/Ionaru/easy-markdown-editor/blob/master/types/easymde.d.ts