Migrate authorize{ actions, actionType, reducer} to TS & make factory service for interfaces #15
This commit is contained in:
26
app/factories/serviceProvide.ts
Normal file
26
app/factories/serviceProvide.ts
Normal file
@@ -0,0 +1,26 @@
|
||||
//#region Interfaces
|
||||
|
||||
import { IServiceProvider } from "factories";
|
||||
import { IAuthorizeService } from "services/authorize";
|
||||
|
||||
//#endregion
|
||||
|
||||
//#region Service implemented classes
|
||||
|
||||
// - Firebase services
|
||||
import { AuthorizeService } from "firebaseServices/authorize";
|
||||
|
||||
//#endregion
|
||||
|
||||
export class ServiceProvide implements IServiceProvider {
|
||||
|
||||
/**
|
||||
* Create instant for AuthorizeService
|
||||
*
|
||||
* @memberof ServiceProvide
|
||||
*/
|
||||
createAuthorizeService: () => IAuthorizeService = () => {
|
||||
return new AuthorizeService();
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user