Skip to content

Commit

Permalink
chore: better export of schema
Browse files Browse the repository at this point in the history
  • Loading branch information
baboon-king committed Jul 21, 2024
1 parent de0d9d2 commit 1a28a32
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 29 deletions.
32 changes: 3 additions & 29 deletions packages/schema/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,30 +1,4 @@
import { course, courseRelations } from "./schema/course";
import { courseHistory } from "./schema/courseHistory";
import { coursePack, coursePackRelations } from "./schema/coursePack";
import { membership } from "./schema/membership";
import { statement, statementRelations } from "./schema/statement";
import { userCourseProgress } from "./schema/userCourseProgress";
import { userLearnRecord } from "./schema/userLearnRecord";
export * from "./schema";
export * as schemas from "./schema";

export * from "./schema/course";
export * from "./schema/courseHistory";
export * from "./schema/statement";
export * from "./schema/userLearnRecord";
export * from "./schema/userCourseProgress";
export * from "./schema/membership";
export * from "./schema/coursePack";

export const schemas = {
course,
statement,
statementRelations,
membership,
userCourseProgress,
courseHistory,
userLearnRecord,
coursePack,
courseRelations,
coursePackRelations,
};

export type SchemaType = typeof schemas;
export type SchemaType = typeof import("./schema");
7 changes: 7 additions & 0 deletions packages/schema/src/schema/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
export * from "./course";
export * from "./courseHistory";
export * from "./statement";
export * from "./userLearnRecord";
export * from "./userCourseProgress";
export * from "./membership";
export * from "./coursePack";

0 comments on commit 1a28a32

Please sign in to comment.