Skip to content

Commit baddf80

Browse files
committed
refactor(typescript): use generics
1 parent 0a45034 commit baddf80

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/no-doubled-joshi.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ import {
99
createKeyFromKey,
1010
restoreToSurfaceFromKey
1111
} from "./token-utils";
12-
import { TextlintRuleModule, TextlintRuleOptions } from "@textlint/types";
1312
import { TxtNode } from "@textlint/ast-node-types";
13+
import { TextlintRuleModule } from "@textlint/types";
1414
import { StringSource } from "textlint-util-to-string";
1515

1616
/**
@@ -77,7 +77,7 @@ export interface Options {
7777
7878
TODO: need abstraction
7979
*/
80-
const report: TextlintRuleModule = function (context, options: TextlintRuleOptions<Options> = {}) {
80+
const report: TextlintRuleModule<Options> = function (context, options = {}) {
8181
const helper = new RuleHelper(context);
8282
// 最低間隔値
8383
const minInterval = options.min_interval || defaultOptions.min_interval;

0 commit comments

Comments
 (0)