mirror of
https://framagit.org/framasoft/framadate/funky-framadate-front.git
synced 2023-08-25 13:53:14 +02:00
6 lines
215 B
TypeScript
6 lines
215 B
TypeScript
|
export function throwIfAlreadyLoaded(parentModule: any, moduleName: string): void {
|
||
|
if (parentModule) {
|
||
|
throw new Error(`${moduleName} has already been loaded. Import ${moduleName} in the AppModule only.`);
|
||
|
}
|
||
|
}
|