Removed some types as the package comes with it own types now (#949)

This commit is contained in:
Philip Molares 2021-01-15 23:16:39 +01:00 committed by GitHub
parent 908a5ce984
commit d838b2c2d4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 10 additions and 40 deletions

View file

@ -1,12 +0,0 @@
/*
* SPDX-FileCopyrightText: 2021 The HedgeDoc developers (see AUTHORS file)
*
* SPDX-License-Identifier: AGPL-3.0-only
*/
declare module 'markdown-it-front-matter' {
import MarkdownIt from 'markdown-it/lib'
export type FrontMatterPluginOptions = (rawMeta: string) => void
const markdownItFrontMatter: MarkdownIt.PluginWithOptions<FrontMatterPluginOptions>
export = markdownItFrontMatter
}

View file

@ -1,12 +0,0 @@
/*
* SPDX-FileCopyrightText: 2021 The HedgeDoc developers (see AUTHORS file)
*
* SPDX-License-Identifier: AGPL-3.0-only
*/
declare module 'markdown-it-plantuml' {
import MarkdownIt from 'markdown-it/lib'
import { PlantumlOptions } from './interface'
const markdownItPlantuml: MarkdownIt.PluginWithOptions<PlantumlOptions>
export = markdownItPlantuml
}

View file

@ -1,14 +0,0 @@
/*
* SPDX-FileCopyrightText: 2021 The HedgeDoc developers (see AUTHORS file)
*
* SPDX-License-Identifier: AGPL-3.0-only
*/
import Renderer from 'markdown-it/lib/renderer'
export interface PlantumlOptions {
openMarker: string
closeMarker: string
render: Renderer
generateSource: (umlCode: string, pluginOptions: PlantumlOptions) => string
}