-
Notifications
You must be signed in to change notification settings - Fork 33
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
18 changed files
with
2,148 additions
and
582 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 |
---|---|---|
@@ -0,0 +1,172 @@ | ||
declare module 'aurelia-configuration' { | ||
import { inject } from 'aurelia-dependency-injection'; | ||
import { join } from 'aurelia-path'; | ||
import { Loader } from 'aurelia-loader'; | ||
export class Configure { | ||
constructor(loader: any); | ||
|
||
/** | ||
* Set Directory | ||
* | ||
* Sets the location to look for the config file | ||
* | ||
* @param path | ||
*/ | ||
setDirectory(path: any): any; | ||
|
||
/** | ||
* Set Config | ||
* | ||
* Sets the filename to look for in the defined directory | ||
* | ||
* @param name | ||
*/ | ||
setConfig(name: any): any; | ||
|
||
/** | ||
* Set Environment | ||
* | ||
* Changes the environment value | ||
* | ||
* @param environment | ||
*/ | ||
setEnvironment(environment: any): any; | ||
|
||
/** | ||
* Set Environments | ||
* | ||
* Specify multiple environment domains to allow for | ||
* dynamic environment switching. | ||
* | ||
* @param environments | ||
*/ | ||
setEnvironments(environments?: any): any; | ||
|
||
/** | ||
* Set Cascade Mode | ||
* | ||
* By default if a environment config value is not found, it will | ||
* go looking up the config file to find it (a la inheritance style). Sometimes | ||
* you just want a config value from a specific environment and nowhere else | ||
* use this to disabled this functionality | ||
* | ||
* @param bool | ||
*/ | ||
setCascadeMode(bool?: any): any; | ||
|
||
/** | ||
* Get Config | ||
* | ||
* Returns the entire configuration object pulled and parsed from file | ||
* | ||
* @returns {V} | ||
*/ | ||
obj: any; | ||
|
||
/** | ||
* Get Config | ||
* | ||
* Get the config file name | ||
* | ||
* @returns {V} | ||
*/ | ||
config: any; | ||
|
||
/** | ||
* Is | ||
* | ||
* A method for determining if the current environment | ||
* equals that of the supplied environment value* | ||
* @param environment | ||
* @returns {boolean} | ||
*/ | ||
is(environment: any): any; | ||
|
||
/** | ||
* Check | ||
* Looks for a match of the hostName to any of the domain | ||
* values specified during the configuration bootstrapping | ||
* phase of Aurelia. | ||
* | ||
*/ | ||
check(): any; | ||
|
||
/** | ||
* Environment Enabled | ||
* A handy method for determining if we are using the default | ||
* environment or have another specified like; staging | ||
* | ||
* @returns {boolean} | ||
*/ | ||
environmentEnabled(): any; | ||
|
||
/** | ||
* Environment Exists | ||
* Checks if the environment section actually exists within | ||
* the configuration file or defaults to default | ||
* | ||
* @returns {boolean} | ||
*/ | ||
environmentExists(): any; | ||
|
||
/** | ||
* Get | ||
* Gets a configuration value from the main config object | ||
* with support for a default value if nothing found | ||
* | ||
* @param key | ||
* @param defaultValue | ||
* @returns {*} | ||
*/ | ||
get(key: any, defaultValue?: any): any; | ||
|
||
/** | ||
* Set | ||
* Saves a config value temporarily | ||
* | ||
* @param key | ||
* @param val | ||
*/ | ||
set(key: any, val: any): any; | ||
|
||
/** | ||
* Merge | ||
* | ||
* Allows you to merge in configuration options | ||
* this method might be used to merge in server-loaded | ||
* configuration options with local ones. | ||
* | ||
* @param obj | ||
* | ||
*/ | ||
merge(obj: any): any; | ||
|
||
/** | ||
* Set All | ||
* Sets and overwrites the entire configuration object | ||
* used internally, but also can be used to set the configuration | ||
* from outside of the usual JSON loading logic. | ||
* | ||
* @param obj | ||
*/ | ||
setAll(obj: any): any; | ||
|
||
/** | ||
* Get All | ||
* Returns all configuration options as an object | ||
* | ||
* @returns {V} | ||
*/ | ||
getAll(): any; | ||
|
||
/** | ||
* Load Config | ||
* Loads the configuration file from specified location | ||
* and then returns a Promise | ||
* | ||
* @returns {Promise} | ||
*/ | ||
loadConfig(): any; | ||
} | ||
export function configure(aurelia: any, configCallback: any): any; | ||
} |
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 was deleted.
Oops, something went wrong.
Oops, something went wrong.