Skip to content

Commit

Permalink
Fix function return types
Browse files Browse the repository at this point in the history
Co-Authored-By: Robert Jackson <me@rwjblue.com>
  • Loading branch information
ro0gr and rwjblue committed Jun 19, 2019
1 parent 0103ee8 commit 3370095
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions addon/index.ts
Expand Up @@ -24,14 +24,14 @@ function registerInstanceInitializers(app: typeof Engine, moduleNames: string[])
}
}

function _endsWith(str: string, suffix: string) {
function _endsWith(str: string, suffix: string): boolean {
return str.indexOf(suffix, str.length - suffix.length) !== -1;
}

/**
* Configure your application as it boots
*/
export default function loadInitializers(app: typeof Engine, prefix: string) {
export default function loadInitializers(app: typeof Engine, prefix: string): void {
var initializerPrefix = prefix + '/initializers/';
var instanceInitializerPrefix = prefix + '/instance-initializers/';
var initializers = [];
Expand Down

0 comments on commit 3370095

Please sign in to comment.