Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add utils index #351

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Conversation

basz
Copy link

@basz basz commented Nov 7, 2022

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';

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant