MCPcopy Create free account
hub / github.com/formatjs/formatjs / getStringAttributeValue

Function getStringAttributeValue

packages/cli-lib/svelte_extractor.ts:54–56  ·  view source on GitHub ↗
(value: SvelteNode)

Source from the content-addressed store, hash-verified

52}
53
54function getStringAttributeValue(value: SvelteNode): string {
55 return value.data ?? value.raw ?? ''
56}
57
58function getAttributeExpression(
59 attr: SvelteNode,

Callers 1

getAttributeExpressionFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected