LooseCollation.ts overview

An in-memory IdentifierStore whose getByValue compares the way a MySQL column under the default utf8mb4_0900_ai_ci collation does: case-, accent- and width-insensitive. The suites use it to show that the services never act on a record the store matched loosely.

Internal test support: not exported from ./testing.


Exports Grouped by Category


utils

looseCollationIdentifierStore

memoryIdentifierStore over records, except that getByValue answers with the first record of the type whose value folds to the same string, as a case- and accent-insensitive column would.

Signature

declare const looseCollationIdentifierStore: (
  records: MutableHashMap.MutableHashMap<string, Identifier>
) => typeof IdentifierStore.Service

Source


This site uses Just the Docs, a documentation theme for Jekyll.