Skip to content
This repository has been archived by the owner on Jul 14, 2022. It is now read-only.

Commit

Permalink
release: 5
Browse files Browse the repository at this point in the history
  • Loading branch information
kymppi committed Oct 21, 2021
1 parent f9e5c27 commit df66af3
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 3 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# Shared typings

This is a repository for shared types and interfaces.

This package contains all of the code and type definitions that are shared between @rittaschool products. This includes: ritta-server microservices and ritta-next.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@rittaschool/shared",
"version": "0.0.40",
"version": "0.0.5",
"main": "./lib/index.cjs.js",
"module": "./lib/index.esm.js",
"types": "./lib/index.d.ts",
Expand Down
7 changes: 6 additions & 1 deletion src/classes/index.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
import { IEventType } from '../enums';
import { IEventType } from "../enums";

export class Event<T> {
public type: IEventType;
public payload: T;

constructor(type: IEventType, payload: T) {
this.type = type;
this.payload = payload;
}
}
15 changes: 14 additions & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
@@ -1 +1,14 @@
export const test = (str: string) => `testing ${str}`;
export { Event } from "./classes/index";
export {
IAccount,
IBackupCode,
ILocation,
IMFAOptions,
IParentSchema,
IStudentSchema,
ITeacherSchema,
IUser,
IYubikeyOptions,
} from "./interfaces/index";
export { IOAuth2Identifiers } from "./types/index";
export { IAccountType, IEventType, ISocialProvider } from "./enums";

0 comments on commit df66af3

Please sign in to comment.