Skip to content

Commit

Permalink
feat(core/create): renames collection to collections
Browse files Browse the repository at this point in the history
  • Loading branch information
rafamel committed Oct 13, 2019
1 parent 819a4b7 commit bde7ed9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import { CollectionTreeImplementation, InputCollection } from '~/types';
import { emptyCollection, mergeCollection } from '~/utils';

export default collection;
export default collections;

function collection<
function collections<
C1 extends InputCollection = CollectionTreeImplementation<{}, {}, {}>,
C2 extends InputCollection = C1,
C3 extends InputCollection = C1,
Expand Down Expand Up @@ -157,7 +157,7 @@ function collection<
C49 &
C50;

function collection(
function collections(
...collections: InputCollection[]
): CollectionTreeImplementation {
let collection = emptyCollection() as CollectionTreeImplementation;
Expand Down
2 changes: 1 addition & 1 deletion packages/core/src/create/index.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
export { default as application } from './application';
export { default as collection } from './collection';
export { default as collections } from './collections';
export { default as schema } from './schema';
export * from './scopes';
export * from './intercepts';
Expand Down

0 comments on commit bde7ed9

Please sign in to comment.