getPublisherThemeReferencePathV2()
Alpha API. Initial API, highly likely to change outside SemVer. Don’t build on it in production. See API maturity.
The path of a theme reference such as {theme.colors.texts.muted}, as ["colors", "texts", "muted"]; undefined when the value is not one.
export declare function getPublisherThemeReferencePathV2(value: unknown): string[] | undefined;
Parameters
Parameter | Type | Description |
|---|---|---|
value | unknown |
Returns
string[] | undefined
Remarks
A theme reference is always the whole value, never part of a longer string.