This repository has been archived by the owner on Jul 14, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
23 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"; |