Skip to content

Commit

Permalink
reexport all as default
Browse files Browse the repository at this point in the history
  • Loading branch information
AmauryD committed Nov 26, 2023
1 parent 863f2ed commit 00d174c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion ember-utils/src/utils/ensure-model-properties.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export type LoadedModel<T extends Model, P extends (keyof T)[]> = Merge<
}
>;

export function ensureModelProperties<
export default function ensureModelProperties<
T extends Model,
C extends typeof Model,
P extends (keyof T)[],
Expand Down
2 changes: 1 addition & 1 deletion ember-utils/src/utils/file-to-form-data.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ export interface Relation {
id: string;
}

export function fileToFormData(file: File, relations: Relation[]) {
export default function fileToFormData(file: File, relations: Relation[]) {
const formDataHelper = new FormDataHelper(file);
formDataHelper.appendRelations(relations);
return formDataHelper.formData;
Expand Down
2 changes: 1 addition & 1 deletion ember-utils/src/utils/to.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export type Result<T, E> = Success<T> | Err<E>;
* console.error("Error:", result.result);
* }
*/
export async function to<T, E extends Error>(
export default async function to<T, E extends Error>(
promise: Promise<T> | (() => Promise<T>),
error: Constructor<E>,
): Promise<Result<T, E>> {
Expand Down

0 comments on commit 00d174c

Please sign in to comment.