@regle/core 0.10.3 → 0.10.4
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/dist/regle-core.d.cts +6 -1
- package/dist/regle-core.d.ts +6 -1
- package/package.json +1 -1
package/dist/regle-core.d.cts
CHANGED
|
@@ -1880,7 +1880,7 @@ type MergedRegles<TRegles extends Record<string, SuperCompatibleRegleRoot>, TVal
|
|
|
1880
1880
|
/** Sets all properties as dirty, triggering all rules. It returns a promise that will either resolve to false or a type safe copy of your form state. Values that had the required rule will be transformed into a non-nullable value (type only). */
|
|
1881
1881
|
$validate: () => Promise<MergedReglesResult<TRegles>>;
|
|
1882
1882
|
};
|
|
1883
|
-
type MergedScopedRegles<TValue extends Record<string, unknown>[] = Record<string, unknown>[]> = Omit<MergedRegles<Record<string, SuperCompatibleRegleRoot>, TValue>, '$instances' | '$errors' | '$silentErrors' | '$value' | '$silentValue'> & {
|
|
1883
|
+
type MergedScopedRegles<TValue extends Record<string, unknown>[] = Record<string, unknown>[]> = Omit<MergedRegles<Record<string, SuperCompatibleRegleRoot>, TValue>, '$instances' | '$errors' | '$silentErrors' | '$value' | '$silentValue' | '$validate'> & {
|
|
1884
1884
|
/** Array of scoped Regles instances */
|
|
1885
1885
|
readonly $instances: SuperCompatibleRegleRoot[];
|
|
1886
1886
|
/** Collection of all registered Regles instances values */
|
|
@@ -1889,6 +1889,11 @@ type MergedScopedRegles<TValue extends Record<string, unknown>[] = Record<string
|
|
|
1889
1889
|
readonly $errors: RegleValidationErrors<Record<string, unknown>>[];
|
|
1890
1890
|
/** Collection of all registered Regles instances silent errors */
|
|
1891
1891
|
readonly $silentErrors: RegleValidationErrors<Record<string, unknown>>[];
|
|
1892
|
+
/** Sets all properties as dirty, triggering all rules. It returns a promise that will either resolve to false or a type safe copy of your form state. Values that had the required rule will be transformed into a non-nullable value (type only). */
|
|
1893
|
+
$validate: () => Promise<{
|
|
1894
|
+
valid: boolean;
|
|
1895
|
+
data: TValue;
|
|
1896
|
+
}>;
|
|
1892
1897
|
};
|
|
1893
1898
|
type MergedReglesResult<TRegles extends Record<string, SuperCompatibleRegleRoot>> = {
|
|
1894
1899
|
valid: false;
|
package/dist/regle-core.d.ts
CHANGED
|
@@ -1880,7 +1880,7 @@ type MergedRegles<TRegles extends Record<string, SuperCompatibleRegleRoot>, TVal
|
|
|
1880
1880
|
/** Sets all properties as dirty, triggering all rules. It returns a promise that will either resolve to false or a type safe copy of your form state. Values that had the required rule will be transformed into a non-nullable value (type only). */
|
|
1881
1881
|
$validate: () => Promise<MergedReglesResult<TRegles>>;
|
|
1882
1882
|
};
|
|
1883
|
-
type MergedScopedRegles<TValue extends Record<string, unknown>[] = Record<string, unknown>[]> = Omit<MergedRegles<Record<string, SuperCompatibleRegleRoot>, TValue>, '$instances' | '$errors' | '$silentErrors' | '$value' | '$silentValue'> & {
|
|
1883
|
+
type MergedScopedRegles<TValue extends Record<string, unknown>[] = Record<string, unknown>[]> = Omit<MergedRegles<Record<string, SuperCompatibleRegleRoot>, TValue>, '$instances' | '$errors' | '$silentErrors' | '$value' | '$silentValue' | '$validate'> & {
|
|
1884
1884
|
/** Array of scoped Regles instances */
|
|
1885
1885
|
readonly $instances: SuperCompatibleRegleRoot[];
|
|
1886
1886
|
/** Collection of all registered Regles instances values */
|
|
@@ -1889,6 +1889,11 @@ type MergedScopedRegles<TValue extends Record<string, unknown>[] = Record<string
|
|
|
1889
1889
|
readonly $errors: RegleValidationErrors<Record<string, unknown>>[];
|
|
1890
1890
|
/** Collection of all registered Regles instances silent errors */
|
|
1891
1891
|
readonly $silentErrors: RegleValidationErrors<Record<string, unknown>>[];
|
|
1892
|
+
/** Sets all properties as dirty, triggering all rules. It returns a promise that will either resolve to false or a type safe copy of your form state. Values that had the required rule will be transformed into a non-nullable value (type only). */
|
|
1893
|
+
$validate: () => Promise<{
|
|
1894
|
+
valid: boolean;
|
|
1895
|
+
data: TValue;
|
|
1896
|
+
}>;
|
|
1892
1897
|
};
|
|
1893
1898
|
type MergedReglesResult<TRegles extends Record<string, SuperCompatibleRegleRoot>> = {
|
|
1894
1899
|
valid: false;
|