mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-08-06 17:29:08 +00:00
Add more type of argument for position
It can take both Position and Point
This commit is contained in:
6
types/vfile/index.d.ts
vendored
6
types/vfile/index.d.ts
vendored
@@ -40,11 +40,11 @@ declare namespace vfile {
|
||||
fatal?: boolean | null;
|
||||
}
|
||||
|
||||
type Message = (reason: string, position?: Position, ruleId?: string) => VFileError;
|
||||
type Message = (reason: string, position?: Point | Position, ruleId?: string) => VFileError;
|
||||
|
||||
type Fail = (reason?: string, position?: Position, ruleId?: string) => void;
|
||||
type Fail = (reason?: string, position?: Point | Position, ruleId?: string) => void;
|
||||
|
||||
type Info = (reason?: string, position?: Position, ruleId?: string) => void;
|
||||
type Info = (reason?: string, position?: Point | Position, ruleId?: string) => void;
|
||||
|
||||
type ToString = (encoding?: BufferEncoding) => string;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user