Interface: CustomScalar<TExternal, TInternal>
Defined in: packages/apollo/src/decorators/type.decorator.ts:387
Interface for custom scalars.
Type Parameters
| Type Parameter |
|---|
TExternal |
TInternal |
Methods
parseLiteral()
ts
parseLiteral(value): TInternal | null;Defined in: packages/apollo/src/decorators/type.decorator.ts:395
Parses a literal AST node to internal representation.
Parameters
| Parameter | Type |
|---|---|
value | unknown |
Returns
TInternal | null
parseValue()
ts
parseValue(value): TInternal;Defined in: packages/apollo/src/decorators/type.decorator.ts:391
Parses an external value to internal representation.
Parameters
| Parameter | Type |
|---|---|
value | TExternal |
Returns
TInternal
serialize()
ts
serialize(value): TExternal;Defined in: packages/apollo/src/decorators/type.decorator.ts:393
Serializes an internal value to external representation.
Parameters
| Parameter | Type |
|---|---|
value | TInternal |
Returns
TExternal
Properties
| Property | Type | Description | Defined in |
|---|---|---|---|
description | string | Description of the scalar type. | packages/apollo/src/decorators/type.decorator.ts:389 |