-
Notifications
You must be signed in to change notification settings - Fork 137
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #33 from okgrow/v0.4.5
Fixed the TypeScript definitions in graphql-scalars.d.ts
- Loading branch information
Showing
4 changed files
with
49 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,49 @@ | ||
import { GraphQLScalarType } from 'graphql'; | ||
|
||
interface RegularExpressionOptions { | ||
errorMessage: Function; | ||
} | ||
|
||
declare namespace GraphqlScalars { | ||
declare const EmailAddress: GraphQLScalarType; | ||
declare const DateTime: GraphQLScalarType; | ||
declare const NonPositiveInt: GraphQLScalarType; | ||
declare const PositiveInt: GraphQLScalarType; | ||
declare const NonNegativeInt: GraphQLScalarType; | ||
declare const NegativeInt: GraphQLScalarType; | ||
declare const NonPositiveFloat: GraphQLScalarType; | ||
declare const PositiveFloat: GraphQLScalarType; | ||
declare const NonNegativeFloat: GraphQLScalarType; | ||
declare const NegativeFloat: GraphQLScalarType; | ||
declare const EmailAddress: GraphQLScalarType; | ||
declare const URL: GraphQLScalarType; | ||
declare const PhoneNumber: GraphQLScalarType; | ||
declare const PostalCode: GraphQLScalarType; | ||
const EmailAddress: GraphQLScalarType; | ||
const DateTime: GraphQLScalarType; | ||
const NonPositiveInt: GraphQLScalarType; | ||
const PositiveInt: GraphQLScalarType; | ||
const NonNegativeInt: GraphQLScalarType; | ||
const NegativeInt: GraphQLScalarType; | ||
const NonPositiveFloat: GraphQLScalarType; | ||
const PositiveFloat: GraphQLScalarType; | ||
const NonNegativeFloat: GraphQLScalarType; | ||
const NegativeFloat: GraphQLScalarType; | ||
const URL: GraphQLScalarType; | ||
const PhoneNumber: GraphQLScalarType; | ||
const PostalCode: GraphQLScalarType; | ||
|
||
declare class RegularExpression extends GraphQLScalarType { | ||
constructor(name: string, regex: RegExp); | ||
class RegularExpression extends GraphQLScalarType { | ||
constructor( | ||
name: string, | ||
regex: RegExp, | ||
options?: RegularExpressionOptions, | ||
); | ||
} | ||
|
||
const DateTimeScalar: string; | ||
const NonPositiveIntScalar: string; | ||
const PositiveIntScalar: string; | ||
const NonNegativeIntScalar: string; | ||
const UnsignedIntScalar: string; | ||
const NegativeIntScalar: string; | ||
const NonPositiveFloatScalar: string; | ||
const PositiveFloatScalar: string; | ||
const NonNegativeFloatScalar: string; | ||
const UnsignedFloatScalar: string; | ||
const NegativeFloatScalar: string; | ||
const EmailAddressScalar: string; | ||
const URLScalar: string; | ||
const PhoneNumberScalar: string; | ||
const PostalCodeScalar: string; | ||
const RegularExpressionScalar: string; | ||
const OKGScalarDefinitions: string[]; | ||
} | ||
|
||
export = GraphqlScalars; |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters