Skip to main content

serverTypes/perform

@prismatic-io/spectral"serverTypes/perform"

Index#

Interfaces#

Type aliases#

Functions#

Type aliases#

CleanFn#

Ƭ CleanFn: function

Defined in packages/spectral/src/serverTypes/perform.ts:6

Type declaration:#

▸ (...args: any[]): any

Parameters:

NameType
...argsany[]

InputCleaners#

Ƭ InputCleaners: Record‹string, CleanFn | undefined›

Defined in packages/spectral/src/serverTypes/perform.ts:8


PerformFn#

Ƭ PerformFn: function

Defined in packages/spectral/src/serverTypes/perform.ts:5

Type declaration:#

▸ (...args: any[]): Promise‹any›

Parameters:

NameType
...argsany[]

Functions#

Const cleanParams#

cleanParams(params: Record‹string, unknown›, cleaners: InputCleaners): Record‹string, any›

Defined in packages/spectral/src/serverTypes/perform.ts:15

Parameters:

NameType
paramsRecord‹string, unknown›
cleanersInputCleaners

Returns: Record‹string, any›


Const createPerform#

createPerform(performFn: PerformFn, __namedParameters: object): PerformFn

Defined in packages/spectral/src/serverTypes/perform.ts:24

Parameters:

performFn: PerformFn

__namedParameters: object

NameType
errorHandlerundefined | function
inputCleanersobject

Returns: PerformFn