Skip to content

Commit 200a66f

Browse files
author
Morgan Touverey Quilling
committed
chore(typescript): mark TS-specific comments as @ts-todo
1 parent fe4f864 commit 200a66f

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

src/fieldsConverter.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { EnumTypeComposer, SchemaComposer, TypeComposer } from 'graphql-compose'
22
import { GraphQLScalarType } from 'graphql-compose/lib/graphql';
33
import { Model, Schema } from 'mongoose';
44

5-
// MongooseSchemaField<any> in the Flow version, MongooseSchemaField isn't there in mongoose's .d.ts
5+
// @ts-todo MongooseSchemaField<any> in the Flow version, MongooseSchemaField isn't there in mongoose's .d.ts
66
type MongooseFieldT = any;
77

88
type MongooseFieldMapT = { [fieldName: string]: MongooseFieldT };

src/index.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,6 @@ import GraphQLMongoID from './types/mongoid';
55
export default composeWithMongoose;
66

77
export * from './fieldsConverter';
8-
// export * from './discriminators'; // untyped yet
8+
// @ts-todo export * from './discriminators'; // untyped yet
99

1010
export { composeWithMongoose, composeWithMongooseDiscriminators, GraphQLMongoID };

src/resolvers/connection.d.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ import { Resolver, TypeComposer } from 'graphql-compose';
33
import { Model } from 'mongoose';
44
import { IndexT } from '../utils';
55

6-
// The ConnectionSortMapOpts is not available yet since graphql-compose-connection doesn't have types for now,
7-
// fallback to a simple object.
6+
// @ts-todo The ConnectionSortMapOpts is not available yet since graphql-compose-connection doesn't have types for now,
7+
// fallback to a simple object.
88
export type ConnectionSortMapOpts = { [opt: string]: any };
99

1010
export default function connection(

src/utils/getIndexesFromModel.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ export function getIndexesFromModel(
1414
export function getUniqueIndexes(mongooseModel: Model<any>): IndexT[];
1515

1616
export type ExtendByReversedIndexesOpts = {
17-
reversedFirst?: boolean, // false by default
17+
reversedFirst?: boolean,
1818
};
1919

2020
export function extendByReversedIndexes(indexes: IndexT[], opts?: ExtendByReversedIndexesOpts): IndexT[];

0 commit comments

Comments
 (0)