MCPcopy Create free account
hub / github.com/Effect-TS/tsgo / GetEffectFn

Method GetEffectFn

etscore/options.go:186–191  ·  view source on GitHub ↗

GetEffectFn returns the configured effectFn variants, or the default ["span"] when unset/empty.

()

Source from the content-addressed store, hash-verified

184
185// GetEffectFn returns the configured effectFn variants, or the default ["span"] when unset/empty.
186func (e *ResolvedEffectPluginOptions) GetEffectFn() []string {
187 if e == nil || len(e.EffectFn) == 0 {
188 return DefaultEffectFn
189 }
190 return e.EffectFn
191}
192
193// EffectFnIncludes checks if a variant is in the configured (or default) effectFn list.
194func (e *ResolvedEffectPluginOptions) EffectFnIncludes(variant string) bool {

Callers 1

EffectFnIncludesMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected