Skip to content

Instantly share code, notes, and snippets.

@phenomnomnominal
Created March 10, 2019 11:23
Show Gist options
  • Save phenomnomnominal/9eda5a1e71587c582b3d3f6657cb0d8c to your computer and use it in GitHub Desktop.
Save phenomnomnominal/9eda5a1e71587c582b3d3f6657cb0d8c to your computer and use it in GitHub Desktop.
/**
* A function that is called to resolve a collection of lazy-loaded routes.
*/
export type LoadChildrenCallback = () => Type<any>| NgModuleFactory<any>| Promise<Type<any>>| Observable<Type<any>>;
/**
* A string of the form `path/to/file#exportName` that acts as a URL for a set of routes to load,
* or a function that returns such a set.
*/
export type LoadChildren = string | LoadChildrenCallback;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment