We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c12ee12 commit 36f6ea8Copy full SHA for 36f6ea8
src/react-mock/index.ts
@@ -9,10 +9,10 @@ import DataGeneratorClass, { IDataGenerator } from './data-generator'
9
/**
10
* type guard
11
* check to see if passed in object implements IDataGenerator
12
- * @param object
+ * @param instance
13
*/
14
-function implementsIDG(object: any): object is IDataGenerator {
15
- return 'next' in object && typeof object.next === 'function'
+function implementsIDG(instance: any): instance is IDataGenerator {
+ return 'next' in instance && typeof instance.next === 'function'
16
}
17
18
export default class ServerClass {
0 commit comments