This repository was archived by the owner on Dec 8, 2021. It is now read-only.
File tree Expand file tree Collapse file tree 5 files changed +13
-13
lines changed Expand file tree Collapse file tree 5 files changed +13
-13
lines changed Original file line number Diff line number Diff line change @@ -321,7 +321,7 @@ export const getDistinctInputTypes = (
321
321
export function renderEnums ( args : GenerateArgs ) : string {
322
322
return args . enums
323
323
. map ( enumObject => {
324
- return `type ${ enumObject . name } = ${ enumObject . values
324
+ return `export type ${ enumObject . name } = ${ enumObject . values
325
325
. map ( value => `'${ value } '` )
326
326
. join ( ' | ' ) } `
327
327
} )
Original file line number Diff line number Diff line change @@ -8,8 +8,8 @@ import type { GraphQLResolveInfo } from \\"graphql\\";
8
8
import type { User } from \\ "../../fixtures/enum/types-flow\\ ";
9
9
type Context = any;
10
10
11
- type EnumAnnotation = \\ "EDITOR\\ " | \\ "COLLABORATOR\\ ";
12
- type EnumAsUnionType = \\ "RED\\ " | \\ "GREEN\\ " | \\ "BLUE\\ ";
11
+ export type EnumAnnotation = \\ "EDITOR\\ " | \\ "COLLABORATOR\\ ";
12
+ export type EnumAsUnionType = \\ "RED\\ " | \\ "GREEN\\ " | \\ "BLUE\\ ";
13
13
14
14
// Types for Query
15
15
export const Query_defaultResolvers = { } ;
Original file line number Diff line number Diff line change @@ -37,7 +37,7 @@ import type {
37
37
} from \\"../../fixtures/prisma/flow-types\\";
38
38
type Context = any;
39
39
40
- type PLACE_SIZES =
40
+ export type PLACE_SIZES =
41
41
| \\"ENTIRE_HOUSE\\"
42
42
| \\"ENTIRE_APARTMENT\\"
43
43
| \\"ENTIRE_EARTH_HOUSE\\"
@@ -46,9 +46,9 @@ type PLACE_SIZES =
46
46
| \\"ENTIRE_PLACE\\"
47
47
| \\"ENTIRE_BOAT\\"
48
48
| \\"PRIVATE_ROOM\\";
49
- type CURRENCY = \\"CAD\\" | \\"CHF\\" | \\"EUR\\" | \\"JPY\\" | \\"USD\\" | \\"ZAR\\";
50
- type PAYMENT_PROVIDER = \\"PAYPAL\\" | \\"CREDIT_CARD\\";
51
- type NOTIFICATION_TYPE =
49
+ export type CURRENCY = \\"CAD\\" | \\"CHF\\" | \\"EUR\\" | \\"JPY\\" | \\"USD\\" | \\"ZAR\\";
50
+ export type PAYMENT_PROVIDER = \\"PAYPAL\\" | \\"CREDIT_CARD\\";
51
+ export type NOTIFICATION_TYPE =
52
52
| \\"OFFER\\"
53
53
| \\"INSTANT_BOOK\\"
54
54
| \\"RESPONSIVENESS\\"
Original file line number Diff line number Diff line change @@ -7,8 +7,8 @@ import { GraphQLResolveInfo } from \\"graphql\\";
7
7
import { User } from \\"../../fixtures/enum/types\\";
8
8
type Context = any;
9
9
10
- type EnumAnnotation = \\"EDITOR\\" | \\"COLLABORATOR\\";
11
- type EnumAsUnionType = \\"RED\\" | \\"GREEN\\" | \\"BLUE\\";
10
+ export type EnumAnnotation = \\"EDITOR\\" | \\"COLLABORATOR\\";
11
+ export type EnumAsUnionType = \\"RED\\" | \\"GREEN\\" | \\"BLUE\\";
12
12
13
13
export namespace QueryResolvers {
14
14
export const defaultResolvers = {};
Original file line number Diff line number Diff line change @@ -36,7 +36,7 @@ import {
36
36
} from \\"../../fixtures/prisma/types\\";
37
37
type Context = any;
38
38
39
- type PLACE_SIZES =
39
+ export type PLACE_SIZES =
40
40
| \\"ENTIRE_HOUSE\\"
41
41
| \\"ENTIRE_APARTMENT\\"
42
42
| \\"ENTIRE_EARTH_HOUSE\\"
@@ -45,9 +45,9 @@ type PLACE_SIZES =
45
45
| \\"ENTIRE_PLACE\\"
46
46
| \\"ENTIRE_BOAT\\"
47
47
| \\"PRIVATE_ROOM\\";
48
- type CURRENCY = \\"CAD\\" | \\"CHF\\" | \\"EUR\\" | \\"JPY\\" | \\"USD\\" | \\"ZAR\\";
49
- type PAYMENT_PROVIDER = \\"PAYPAL\\" | \\"CREDIT_CARD\\";
50
- type NOTIFICATION_TYPE =
48
+ export type CURRENCY = \\"CAD\\" | \\"CHF\\" | \\"EUR\\" | \\"JPY\\" | \\"USD\\" | \\"ZAR\\";
49
+ export type PAYMENT_PROVIDER = \\"PAYPAL\\" | \\"CREDIT_CARD\\";
50
+ export type NOTIFICATION_TYPE =
51
51
| \\"OFFER\\"
52
52
| \\"INSTANT_BOOK\\"
53
53
| \\"RESPONSIVENESS\\"
You can’t perform that action at this time.
0 commit comments