Docs
API
Modules
string_interpolation_src

Table of contents

Classes

Type Aliases

Variables

Functions

Type Aliases

ResolverData

Ƭ ResolverData<TParent, TArgs, TContext, TResult>: Object

Type parameters

NameType
TParentany
TArgsany
TContextany
TResultany

Type declaration

NameType
args?TArgs
context?TContext
envRecord<string, string>
info?GraphQLResolveInfo
result?TResult
root?TParent

Defined in

packages/string-interpolation/src/resolver-data-factory.ts:4


ResolverDataBasedFactory

Ƭ ResolverDataBasedFactory<T>: (data: ResolverData) => T

Type parameters

Name
T

Type declaration

▸ (data): T

Parameters
NameType
dataResolverData
Returns

T

Defined in

packages/string-interpolation/src/resolver-data-factory.ts:12

Variables

stringInterpolator

Const stringInterpolator: Interpolator

Defined in

packages/string-interpolation/src/index.ts:12

Functions

getInterpolatedHeadersFactory

getInterpolatedHeadersFactory(nonInterpolatedHeaders?): ResolverDataBasedFactory<Record<string, string>>

Parameters

NameType
nonInterpolatedHeadersRecord<string, string>

Returns

ResolverDataBasedFactory<Record<string, string>>


getInterpolatedStringFactory

getInterpolatedStringFactory(nonInterpolatedString): ResolverDataBasedFactory<string>

Parameters

NameType
nonInterpolatedStringstring

Returns

ResolverDataBasedFactory<string>


getInterpolationKeys

getInterpolationKeys(...interpolationStrings): any[]

Parameters

NameType
...interpolationStringsstring[]

Returns

any[]


hashObject

hashObject(value): string

Parameters

NameType
valueany

Returns

string


parseInterpolationStrings

parseInterpolationStrings(interpolationStrings, argTypeMap?): Object

Parameters

NameType
interpolationStringsIterable<string>
argTypeMap?Record<string, string | GraphQLInputType>

Returns

Object

NameType
argsRecord<string, { type: string | GraphQLInputType }>
contextVariablesRecord<string, string>