Μετάβαση στο περιεχόμενο

IPipelineBehaviorOptionsResolver

Αυτό το περιεχόμενο δεν είναι ακόμη διαθέσιμο στη γλώσσα σου.

Defined in: packages/pipeline/src/interfaces/pipeline.behavior.interface.ts:43

Optional instance contract for a behavior that merges its own defaults into the options declared at a call site or globally. Contract diagnostics call it on behavior instances so contract validators receive the options the behavior will apply; a behavior without an instance when the diagnostics run passes its validators the raw declared options.

class CacheBehavior
implements IPipelineBehavior, IPipelineBehaviorOptionsResolver<CacheOptions>
{
resolveEffectiveOptions(options?: CacheOptions): CacheOptions {
return { ...this.defaults, ...options };
}
}

TOptions extends object = Record<string, unknown>

resolveEffectiveOptions(options?): TOptions | undefined

Defined in: packages/pipeline/src/interfaces/pipeline.behavior.interface.ts:46

TOptions

TOptions | undefined