UNPKG

ngx-fastboot

Version:

ngx-fastboot is an Angular library designed to dynamically load configuration settings at runtime, optimizing application startup performance by offloading configurations to a separate compilation chunk.

16 lines (11 loc) 328 B
import { TypeProvider } from '@angular/core'; import { FastProvider } from './types'; export const isTypeProvider = (value: FastProvider): value is TypeProvider => { if (typeof value !== 'function') { return false; } if (!value.prototype) { return false; } return value.prototype.constructor === value; };