poteto / ember-changeset-validations

Validations for ember-changeset
http://bit.ly/ember-changeset-demo
Other
219 stars 99 forks source link

Add utils index #351

Open basz opened 1 year ago

basz commented 1 year ago

Changes proposed in this pull request

This adds an index.js on the utils path so utils can be imported from that. This is done because @types/ember-changeset-validations has definitions for the provided utils at that import path

this works now with typescript

import { buildMessage } from 'ember-changeset-validations/utils';

where as the following did not

import buildMessage from 'ember-changeset-validations/utils/validation-errors';