From 548858145f1b09f2df2ef5a4717b7781c2785dc2 Mon Sep 17 00:00:00 2001 From: Eugene Kuzmenko Date: Wed, 5 Apr 2017 16:28:26 +0200 Subject: [PATCH] [fixed] the type signature of the `Documentation` constructor `options` argument --- src/Documentation.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Documentation.js b/src/Documentation.js index 44f6b09..ee2a71f 100644 --- a/src/Documentation.js +++ b/src/Documentation.js @@ -1,5 +1,6 @@ /* @flow */ +import type {DocumentationConfig} from './typedef'; import type {NativeProcess} from './NativeProcess'; import {join} from 'path'; import noop from 'lodash/noop'; @@ -55,9 +56,8 @@ export class Documentation { */ options: Object; - /* eslint-disable require-jsdoc */ - constructor(options: Object = {}) { - /* eslint-enable require-jsdoc */ + // eslint-disable-next-line require-jsdoc + constructor(options: DocumentationConfig = {}) { this.options = {...defaultOptions, ...options}; }