Skip to content

Commit

Permalink
fix(types): Fix types and optional parameters
Browse files Browse the repository at this point in the history
fix #104
  • Loading branch information
nfroidure committed Oct 14, 2019
1 parent babfd6e commit 52fc8bf
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions src/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ export function alsoInject<
export function options<D extends Dependencies, S, T extends Initializer<D, S>>(
options: InitializerOptions,
initializer: T,
merge: boolean,
merge?: boolean,
): T;
export function extra<D extends Dependencies, S, T extends Initializer<D, S>>(
data: any,
Expand Down Expand Up @@ -137,7 +137,14 @@ export function autoHandler<D extends Dependencies, U extends any[], V>(
handlerInitializer: HandlerInitializer<D, U, V>,
): ServiceInitializer<D, Handler<U, V>>;

export const SPECIAL_PROPS: Array<string>;
export const SPECIAL_PROPS: {
INJECT: String,
OPTIONS: String,
NAME: String,
TYPE: String,
EXTRA: String,
VALUE: String,
};
export const DECLARATION_SEPARATOR: string;
export const OPTIONAL_FLAG: string;

Expand Down

0 comments on commit 52fc8bf

Please sign in to comment.