Skip to content

Commit

Permalink
fix(flow-types): change typescript Schema to flow MongooseSchema
Browse files Browse the repository at this point in the history
  • Loading branch information
mernxl committed Dec 5, 2019
1 parent fcd0c3b commit d625f9d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/LocalStateStore.js.flow
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* @flow */

import type { MongooseModel, MongooseSchema, Schema } from 'mongoose';
import type { MongooseModel, MongooseSchema } from 'mongoose';
import { MongooseIdAssigner } from './MongooseIdAssigner';

export type SchemaState = {
Expand All @@ -18,7 +18,7 @@ declare export class LocalStateStore {
constructor(): this;
getState(schema: MongooseSchema<any>): SchemaState;
setState(schema: MongooseSchema<any>, state: SchemaState): void;
getIdAssigner(schema: Schema): MongooseIdAssigner;
getIdAssigner(schema: MongooseSchema<any>): MongooseIdAssigner;
clear(): void;

/**
Expand Down

0 comments on commit d625f9d

Please sign in to comment.