diff --git a/types/vfile-message/index.d.ts b/types/vfile-message/index.d.ts index a39d916a34..5f4467e007 100644 --- a/types/vfile-message/index.d.ts +++ b/types/vfile-message/index.d.ts @@ -2,6 +2,7 @@ // Project: https://github.com/vfile/vfile-message#readme // Definitions by: Junyoung Choi // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 3.0 /// @@ -20,7 +21,7 @@ declare namespace vfileMessage { * @param position Place at which the message occurred in a file (`Node`, `Position`, or `Point`, optional). * @param origin Place in code the message originates from (`string`, optional). */ - (reason: string | Error, position?: Unist.Node | Unist.Position | Unist.Point, origin?: string): VFileMessage + (reason: string | Error, position?: Unist.Node | Unist.Position | Unist.Point, origin?: string): VFileMessage; /** * Category of message. */ diff --git a/types/vfile-message/tsconfig.json b/types/vfile-message/tsconfig.json index e740952e79..9e35438c08 100644 --- a/types/vfile-message/tsconfig.json +++ b/types/vfile-message/tsconfig.json @@ -7,6 +7,7 @@ "noImplicitAny": true, "noImplicitThis": true, "strictNullChecks": true, + "strictFunctionTypes": true, "baseUrl": "../", "typeRoots": [ "../"