Steven Fukase 4 лет назад
Родитель
Сommit
747ff2738c
1 измененных файлов с 1 добавлено и 3 удалено
  1. 1 3
      packages/app/src/client/util/codemirror/codemirror-textlint.ts

+ 1 - 3
packages/app/src/client/util/codemirror/codemirror-textlint.ts

@@ -14,8 +14,6 @@ type RuleExtension = {
   ext: string
 }
 
-type RulesConfigArray = Array<RulesConfigObj>
-
 const ruleModulesList = {
   'max-comma': textlintRuleMaxComma,
   'common-misspellings': textlintRuleCommonMisspellings,
@@ -44,7 +42,7 @@ const createSetupRules = (rules, ruleOptions): TextlintKernelRule[] => (
 );
 
 
-export const createValidator = (rulesConfigArray: RulesConfigArray): AsyncLinter<RulesConfigArray> => {
+export const createValidator = (rulesConfigArray: RulesConfigObj[]): AsyncLinter<RulesConfigObj[]> => {
 
   const filteredConfigArray = rulesConfigArray
     .filter((rule) => {