@baleada/logic 0.24.1 → 0.24.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/index.d.ts +4 -4
- package/package.json +1 -1
package/lib/index.d.ts
CHANGED
|
@@ -727,12 +727,12 @@ declare function createSanitize(options?: Config): StringTransform<string>;
|
|
|
727
727
|
declare function createNumber(options?: {
|
|
728
728
|
radix?: number;
|
|
729
729
|
}): StringTransform<number>;
|
|
730
|
-
type CreateResultsOptions<Candidate extends string | object,
|
|
731
|
-
returnMatchData?:
|
|
730
|
+
type CreateResultsOptions<Candidate extends string | object, ReturnsMatchData extends boolean> = Omit<FullOptions<Candidate>, 'returnMatchData'> & {
|
|
731
|
+
returnMatchData?: ReturnsMatchData;
|
|
732
732
|
};
|
|
733
|
-
declare function createResults<Candidate extends string | object,
|
|
733
|
+
declare function createResults<Candidate extends string | object, ReturnsMatchData extends boolean = false>(candidates: Candidate[], options?: (CreateResultsOptions<Candidate, ReturnsMatchData> | ((api: {
|
|
734
734
|
sortKind: typeof sortKind;
|
|
735
|
-
}) => CreateResultsOptions<Candidate,
|
|
735
|
+
}) => CreateResultsOptions<Candidate, ReturnsMatchData>))): StringTransform<ReturnsMatchData extends true ? MatchData<Candidate>[] : Candidate[]>;
|
|
736
736
|
|
|
737
737
|
type ToGraphYielded = {
|
|
738
738
|
node: GraphNode<string>;
|