From 082ff426c1d36b6337c994b0ab636c5f0c89a001 Mon Sep 17 00:00:00 2001 From: SegaraRai Date: Mon, 13 Jan 2025 11:22:47 +0900 Subject: [PATCH] chore: remove __EXAMPLE__ --- .changeset/little-suns-flash.md | 5 +++++ src/factory.ts | 14 -------------- 2 files changed, 5 insertions(+), 14 deletions(-) create mode 100644 .changeset/little-suns-flash.md diff --git a/.changeset/little-suns-flash.md b/.changeset/little-suns-flash.md new file mode 100644 index 0000000..2d6d9fc --- /dev/null +++ b/.changeset/little-suns-flash.md @@ -0,0 +1,5 @@ +--- +"fraci": minor +--- + +Remove **EXAMPLE** type only hint. diff --git a/src/factory.ts b/src/factory.ts index 36bd0ae..24350bb 100644 --- a/src/factory.ts +++ b/src/factory.ts @@ -10,24 +10,10 @@ import { createDigitBaseMap, createIntegerLengthBaseMap } from "./lib/utils.js"; export const DEFAULT_MAX_LENGTH = 50; export const DEFAULT_MAX_RETRIES = 5; -/** - * Fractional index pattern for demonstration. - */ -type IndexPattern = `${L}${D}...`; - -/** - * A helper type to convert a string to a union of characters. - */ -type StringToUnion = T extends `${infer First}${infer Rest}` - ? First | StringToUnion - : never; - /** * Fractional indexing utility. */ export interface Fraci { - readonly __EXAMPLE__?: IndexPattern, StringToUnion>; - readonly digitBase: D; readonly lengthBase: L; generateKeyBetween(