0.18.2 • Published 5 years ago

graphql-codegen-typescript-template v0.18.2

Weekly downloads
8,932
License
-
Repository
-
Last release
5 years ago

TypeScript template

This template generates TypeScript typings for both client side and server side.

Generator Config

This generator supports custom config and output behavior. Use to following flags/environment variables to modify your output as you wish:

printTime (or CODEGEN_PRINT_TIME, default value: false)

Setting this to true will cause the generator to add the time of the generated output on top of the file.

avoidOptionals (or CODEGEN_AVOID_OPTIONALS, default value: false)

This will cause the generator to avoid using TypeScript optionals (?), so the following definition: type A { myField: String } will output myField: string | null instead of myField?: string | null.

enumsAsTypes (or CODEGEN_ENUMS_AS_TYPES, default value: false)

Will generate the declared enums as TypeScript type instead of enums. This is useful if you can't use .ts extension.

immutableTypes (or CODEGEN_IMMUTABLE_TYPES, defualt value: false)

This will cause the codegen to output readonly properties and ReadonlyArray.

0.18.2

5 years ago

0.18.1

5 years ago

0.18.1-alpha.16

5 years ago

0.18.1-alpha.6

5 years ago

0.18.0

5 years ago

0.17.0

5 years ago

0.16.1

5 years ago

0.16.0

5 years ago

0.15.2

5 years ago

0.15.1

5 years ago

0.15.0

5 years ago

0.14.5

5 years ago

0.14.4

5 years ago

0.14.3

5 years ago

0.14.2

5 years ago

0.14.1

5 years ago

0.14.0

5 years ago

0.13.0

6 years ago

0.12.6

6 years ago

0.12.5

6 years ago

0.12.4

6 years ago

0.12.3

6 years ago

0.12.2

6 years ago

0.12.1

6 years ago

0.12.0

6 years ago

0.11.0

6 years ago

0.11.0-alpha.0

6 years ago

0.10.7

6 years ago

0.10.6

6 years ago

0.10.5

6 years ago

0.10.4

6 years ago

0.10.3

6 years ago

0.10.2

6 years ago

0.10.1

6 years ago

0.10.0

6 years ago

0.9.4

6 years ago

0.9.3

6 years ago

0.9.2

6 years ago

0.9.1

6 years ago

0.9.0

6 years ago