Skip to content

Commit 348d09d

Browse files
committed
refactor: migrate package code base from FlowType to TypeScript
BREAKING CHANGE: FlowType definitions no more available in this package
1 parent ed62aba commit 348d09d

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

86 files changed

+446
-1654
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -547,7 +547,7 @@ const childSchema = new Schema({
547547

548548
When we convert model `const UserTC = composeWithMongoose(User, customizationOptions);` you may tune every piece of future derived types and resolvers.
549549

550-
### Here is flow typed definition of this options:
550+
### Here is typed definition of this options:
551551

552552
The top level of customization options. Here you setup name and description for the main type, remove fields or leave only desired fields.
553553

package.json

+1-3
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,7 @@
2727
"url": "https://github.com/graphql-compose/graphql-compose-mongoose/issues"
2828
},
2929
"homepage": "https://github.com/graphql-compose/graphql-compose-mongoose",
30-
"dependencies": {
31-
"object-path": "^0.11.4"
32-
},
30+
"dependencies": {},
3331
"optionalDependencies": {
3432
"graphql-compose-connection": "^6.2.0",
3533
"graphql-compose-pagination": "6.1.0"

src/__tests__/composeWithMongooseDiscriminators-test.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ describe('composeWithMongooseDiscriminators ->', () => {
2828
});
2929
});
3030

31-
describe('composeWithMongoose customisationOptions', () => {
31+
describe('composeWithMongoose customizationOptions', () => {
3232
it('required input fields, should be passed down to resolvers', () => {
3333
const typeComposer = composeWithMongooseDiscriminators(CharacterModel, {
3434
inputType: {

src/composeWithMongoose.d.ts

-134
This file was deleted.

0 commit comments

Comments
 (0)