Skip to content

Commit

Permalink
Fix ValidateOptions as optionals
Browse files Browse the repository at this point in the history
  • Loading branch information
esbanarango committed Jan 2, 2023
1 parent 0a15265 commit 27038a7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions addon/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,9 @@ export function modelValidator<T>(target: T): T & { validate: (options?: Validat
export function objectValidator<T>(target: T): T & { validate: (options?: ValidateOptions) => boolean };

export interface ValidateOptions {
except: string[];
only: string[];
addErrors: boolean;
except?: string[];
only?: string[];
addErrors?: boolean;
}

export interface ValidationsConfig {
Expand Down
2 changes: 1 addition & 1 deletion addon/initializers/register-version.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import Ember from 'ember';

export function initialize() {
Ember.libraries.register('Ember Model Validator', '4.2.0');
Ember.libraries.register('Ember Model Validator', '4.3.0');
}

export default {
Expand Down

0 comments on commit 27038a7

Please sign in to comment.