morpheme-match-textlint
Advanced tools
Comparing version 2.0.4 to 2.0.6
@@ -6,2 +6,21 @@ # Change Log | ||
## [2.0.6](https://github.com/azu/morpheme-match/compare/v2.0.5...v2.0.6) (2019-10-20) | ||
### Bug Fixes | ||
* **morpheme-match-textlint:** fix type ([e2d55c5](https://github.com/azu/morpheme-match/commit/e2d55c5)) | ||
## [2.0.5](https://github.com/azu/morpheme-match/compare/v2.0.4...v2.0.5) (2019-10-20) | ||
**Note:** Version bump only for package morpheme-match-textlint | ||
## [2.0.4](https://github.com/azu/morpheme-match/compare/v2.0.3...v2.0.4) (2019-10-20) | ||
@@ -8,0 +27,0 @@ |
@@ -1,2 +0,2 @@ | ||
import { ExpectedDictionary, ExpectedDictionaries } from "morpheme-match-all"; | ||
import { ExpectedDictionary } from "morpheme-match-all"; | ||
declare type Token = import("morpheme-match").Token; | ||
@@ -7,4 +7,4 @@ declare type ExpectedToken = import("morpheme-match").ExpectedToken; | ||
}; | ||
export declare type ReporterOptions<T extends ExpectedTokenWithCapture> = { | ||
dictionaries: ExpectedDictionaries<T>; | ||
export declare type ReporterOptions<T extends ExpectedTokenWithCapture, Dictionary extends ExpectedDictionary<T>> = { | ||
dictionaries: Dictionary[]; | ||
tokenize: (text: string) => Promise<Token[]>; | ||
@@ -35,3 +35,3 @@ createMessage?: ({ message, matcherTokens, actualTokens }: { | ||
*/ | ||
export declare const createTextlintMatcher: (options: ReporterOptions<ExpectedTokenWithCapture>) => (text: string) => Promise<MatchTextlintResult<ExpectedTokenWithCapture>[]>; | ||
export declare const createTextlintMatcher: (options: ReporterOptions<ExpectedTokenWithCapture, ExpectedDictionary<ExpectedTokenWithCapture>>) => (text: string) => Promise<MatchTextlintResult<ExpectedTokenWithCapture>[]>; | ||
export {}; |
{ | ||
"name": "morpheme-match-textlint", | ||
"version": "2.0.4", | ||
"version": "2.0.6", | ||
"description": "morpheme-match for textlint rule.", | ||
@@ -39,3 +39,3 @@ "keywords": [ | ||
"morpheme-match": "^2.0.4", | ||
"morpheme-match-all": "^2.0.4" | ||
"morpheme-match-all": "^2.0.5" | ||
}, | ||
@@ -53,3 +53,3 @@ "devDependencies": { | ||
"email": "azuciao@gmail.com", | ||
"gitHead": "e04dd2b7ba05005a3c8bd8eae81803e0ca77a95f" | ||
"gitHead": "dd31f48045233f08a65adc5d9d774f65615c3874" | ||
} |
@@ -1,2 +0,2 @@ | ||
import {createMatcher as createMathAll, ExpectedDictionary, ExpectedDictionaries} from "morpheme-match-all"; | ||
import { createMatcher as createMathAll, ExpectedDictionary } from "morpheme-match-all"; | ||
@@ -62,4 +62,4 @@ type Token = import("morpheme-match").Token; | ||
export type ReporterOptions<T extends ExpectedTokenWithCapture> = { | ||
dictionaries: ExpectedDictionaries<T> | ||
export type ReporterOptions<T extends ExpectedTokenWithCapture, Dictionary extends ExpectedDictionary<T>> = { | ||
dictionaries: Dictionary[] | ||
tokenize: (text: string) => Promise<Token[]>; | ||
@@ -94,3 +94,3 @@ createMessage?: ({message, matcherTokens, actualTokens}: { | ||
*/ | ||
export const createTextlintMatcher = (options: ReporterOptions<ExpectedTokenWithCapture>) => { | ||
export const createTextlintMatcher = (options: ReporterOptions<ExpectedTokenWithCapture, ExpectedDictionary<ExpectedTokenWithCapture>>) => { | ||
const matchAll = createMathAll(options.dictionaries); | ||
@@ -97,0 +97,0 @@ const tokenize = options.tokenize; |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
18549
Updatedmorpheme-match-all@^2.0.5