From 34bc9e60fec068a7a56cb0d84f8aa95a18356b2e Mon Sep 17 00:00:00 2001 From: Junyoung Choi Date: Fri, 8 Sep 2017 00:43:23 +0900 Subject: [PATCH] Remove unused generic N --- types/vfile/index.d.ts | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/types/vfile/index.d.ts b/types/vfile/index.d.ts index 64774f735e..caccb1774a 100644 --- a/types/vfile/index.d.ts +++ b/types/vfile/index.d.ts @@ -14,6 +14,7 @@ declare namespace vfile { interface NodeWithPosition extends Unist.Node { position: Unist.Position; + [key: string]: any; } interface VFileParamsBase { @@ -76,7 +77,7 @@ declare namespace vfile { * @param position Place at which the message occurred in `vfile`. * @param ruleId Category of message. */ - type Message = (reason: string, position?: Unist.Point | Unist.Position | N, ruleId?: string) => VFileMessage; + type Message = (reason: string, position?: Unist.Point | Unist.Position | NodeWithPosition, ruleId?: string) => VFileMessage; /** * Associates a fatal message with the file, then immediately throws it. * Note: fatal errors mean a file is no longer processable. @@ -85,7 +86,7 @@ declare namespace vfile { * @param position Place at which the message occurred in `vfile`. * @param ruleId Category of message. */ - type Fail = (reason: string, position?: Unist.Point | Unist.Position | N, ruleId?: string) => never; + type Fail = (reason: string, position?: Unist.Point | Unist.Position | NodeWithPosition, ruleId?: string) => never; /** * Associates an informational message with the file, where `fatal` is set to `null`. * Calls `message()` internally. @@ -93,7 +94,7 @@ declare namespace vfile { * @param position Place at which the message occurred in `vfile`. * @param ruleId Category of message. */ - type Info = (reason: string, position?: Unist.Point | Unist.Position | N, ruleId?: string) => void; + type Info = (reason: string, position?: Unist.Point | Unist.Position | NodeWithPosition, ruleId?: string) => void; /** * Convert contents of `vfile` to string.