@okgrow/graphql-scalars
Advanced tools
Comparing version 0.4.4 to 0.4.5
@@ -8,2 +8,8 @@ # Change Log | ||
## [0.4.5] - 2019-02-12 | ||
### Fixed | ||
- Fixed the TypeScript definitions in `graphql-scalars.d.ts` (Credit: [@capaj](https://github.com/capaj)) | ||
## [0.4.4] - 2019-02-08 | ||
@@ -10,0 +16,0 @@ |
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; |
{ | ||
"name": "@okgrow/graphql-scalars", | ||
"version": "0.4.4", | ||
"version": "0.4.5", | ||
"description": "A collection of scalar types not included in base GraphQL.", | ||
@@ -5,0 +5,0 @@ "repository": { |
368312
4476