Fix: markdown-it helper parseLinkLabel argument state type (#44223)

* fix(markdown-it): fix helper parseLinkLabel argument state type

* test(markdown-it): change test due to helper parseLinkLabel update

* chore(markdown-it): correct url for contributors
This commit is contained in:
duduluu 2020-04-27 00:02:42 +08:00 committed by GitHub
parent cb19b1b382
commit f3aef183cc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 5 additions and 5 deletions

View File

@ -1,6 +1,6 @@
// Type definitions for markdown-it v10.0.0
// Project: https://github.com/markdown-it/markdown-it
// Definitions by: York Yao <https://github.com/plantain-00/>
// Definitions by: York Yao <https://github.com/plantain-00>
// Robert Coie <https://github.com/rapropos>
// duduluu <https://github.com/duduluu>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped

View File

@ -1,5 +1,5 @@
import State = require('../rules_core/state_core');
import StateInline = require('../rules_inline/state_inline');
declare function parseLinkLabel(state: State, start: number, disableNested?: boolean): number;
declare function parseLinkLabel(state: StateInline, start: number, disableNested?: boolean): number;
export = parseLinkLabel;

View File

@ -1,7 +1,7 @@
import State = require('markdown-it/lib/rules_core/state_core');
import StateInline = require('markdown-it/lib/rules_inline/state_inline');
import helpers = require('markdown-it/lib/helpers');
declare const state: State;
declare const state: StateInline;
helpers.parseLinkLabel(state, 0, true);
helpers.parseLinkDestination('https://github.com/markdown-it/markdown-it', 0, 3);