From a5b79d39aa0c6f4018c91899edd1c3da06203fe0 Mon Sep 17 00:00:00 2001 From: JasonChang Date: Tue, 2 Jul 2019 04:22:09 +0800 Subject: [PATCH] modify & fix some definition for package 'markdown-it'. (#36391) --- types/markdown-it/lib/parser_core.d.ts | 2 ++ types/markdown-it/lib/rules_core/state_core.d.ts | 3 +++ 2 files changed, 5 insertions(+) diff --git a/types/markdown-it/lib/parser_core.d.ts b/types/markdown-it/lib/parser_core.d.ts index a6559bdfef..67e0cb09bd 100644 --- a/types/markdown-it/lib/parser_core.d.ts +++ b/types/markdown-it/lib/parser_core.d.ts @@ -1,10 +1,12 @@ import MarkdownIt = require("."); import Ruler = require("./ruler"); import Token = require("./token"); +import StateCore = require("./rules_core/state_core"); export = ParserCore; declare class ParserCore { process(state: any): void; ruler: Ruler; + State: StateCore } diff --git a/types/markdown-it/lib/rules_core/state_core.d.ts b/types/markdown-it/lib/rules_core/state_core.d.ts index 7cf73134aa..19e28a4c7b 100644 --- a/types/markdown-it/lib/rules_core/state_core.d.ts +++ b/types/markdown-it/lib/rules_core/state_core.d.ts @@ -4,6 +4,9 @@ import Token = require("../token"); export = StateCore; declare class StateCore { + + constructor(src: string, md: MarkdownIt, env: any) + env: any; level: number;