Skip to content

Commit

Permalink
chore(deps): update dependency tsbb to v4 #95 & rollup to v3 #94
Browse files Browse the repository at this point in the history
  • Loading branch information
jaywcjlove committed Apr 5, 2023
1 parent 80ffbfe commit 132071a
Show file tree
Hide file tree
Showing 11 changed files with 51 additions and 59 deletions.
7 changes: 4 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,9 @@
"assert"
],
"devDependencies": {
"jest-watch-typeahead": "~1.1.0",
"lerna": "~4.0.0",
"tsbb": "~3.7.2"
"@types/node": "^18.14.1",
"jest-watch-typeahead": "^2.2.2",
"lerna": "^6.6.1",
"tsbb": "^4.1.4"
}
}
12 changes: 6 additions & 6 deletions packages/core/dist/index.d.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
export declare type Value = (number | FormDataEntryValue)[] | number | boolean | null | FormDataEntryValue;
export declare type Values = Partial<Record<string, Value>>;
export declare type Fields = Partial<Record<string, boolean>>;
export declare type Rules = Partial<Record<string, RulesOption>>;
export type Value = (number | FormDataEntryValue)[] | number | boolean | null | FormDataEntryValue;
export type Values = Partial<Record<string, Value>>;
export type Fields = Partial<Record<string, boolean>>;
export type Rules = Partial<Record<string, RulesOption>>;
export interface RulesOption {
/** Validate the form's values with function. */
validate?(value?: Value, values?: Validator['values'], field?: string): string;
}
export declare type ValidatorOption = {
export type ValidatorOption = {
messagesShown?: boolean;
rules?: Rules;
initValues?: Values;
Expand All @@ -29,7 +29,7 @@ export default class Validator {
getForm: () => HTMLFormElement | null | undefined;
setForm: (form: HTMLFormElement) => void;
/** How you define validation rules and add messages into the form. */
message: (field: string, inputValue?: Value | undefined, options?: RulesOption | undefined) => string | undefined;
message: (field: string, inputValue?: Value, options?: RulesOption) => string | undefined;
setValues: (values?: Values) => void;
getValues: () => Values;
reset: () => Values;
Expand Down
11 changes: 7 additions & 4 deletions packages/core/dist/validator.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion packages/core/dist/validator.js.map

Large diffs are not rendered by default.

18 changes: 2 additions & 16 deletions packages/core/dist/validator.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

1 comment on commit 132071a

@jaywcjlove
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.