Skip to content

CreateResolverOptions

Defined in: resolver.ts:115

Options shared by createMojiResolver and the extension.

PropertyTypeDescriptionDefined in
includeDefaults?booleanInclude the built-in DEFAULT_MOJIS. Defaults to true.resolver.ts:127
mojis?| readonly MojiDefinition[] | Record<string, string | MojiDefinition>Custom mojis, merged over (or replacing) the defaults.resolver.ts:117
resolver?MojiResolverFully custom synchronous resolver, consulted first. Return null/undefined to fall through to mojis and the defaults. Use this for lookups you can answer without I/O (e.g. an in-memory map). For a remote registry that must be fetched, use the extension’s resolveAsync option instead (see AsyncMojiResolver / createMojiCache).resolver.ts:125