Skip to content

Rule.io SDK


Rule.io SDK / client/src / BrandThemeResolverClient

Interface: BrandThemeResolverClient

Defined in: client/src/brand-style-to-theme.ts:251

Minimal structural shape resolveBrandTheme needs from a client. RuleClient satisfies it, and test doubles can too without importing the whole client module.

Properties ​

brandStyles ​

brandStyles: object

Defined in: client/src/brand-style-to-theme.ts:252

get() ​

get(id): Promise<BrandStyle | null>

Parameters ​
id ​

number

Returns ​

Promise<BrandStyle | null>

list() ​

list(): Promise<BrandStyleListItem[]>

Returns ​

Promise<BrandStyleListItem[]>