From 034722672575a68d16c9009f9323b7fe3fd37735 Mon Sep 17 00:00:00 2001 From: Teejirapat <64017291+Teejirapat@users.noreply.github.com> Date: Tue, 26 May 2026 12:49:50 +0700 Subject: [PATCH] feat(index): add caseSensitive option to create index typings Expose the missing `caseSensitive` option in `indexes.create` TypeScript typings for string indexes. This option is already supported internally by AceBase index creation but was not available in the public API type definitions. Also documented the default behavior: * `caseSensitive` defaults to `false` * applies to string indexed values only Refs: * https://github.com/appy-one/acebase#other-indexing-options * https://github.com/appy-one/acebase-core/blob/master/src/api.ts --- src/acebase-base.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/acebase-base.ts b/src/acebase-base.ts index 8aa53ed..59e32cb 100644 --- a/src/acebase-base.ts +++ b/src/acebase-base.ts @@ -215,6 +215,11 @@ export abstract class AceBaseBase extends SimpleEventEmitter { include?: string[]; /** If the indexed values are strings, which default locale to use */ textLocale?: string; + /** + * Whether the values are indexed with case sensitivity or not (applies to string values only) + * @default false + */ + caseSensitive?: boolean /** additional index-specific configuration settings */ config?: any; }) => {