Skip to content

Commit

Permalink
fix: typings for app decorator (#1929)
Browse files Browse the repository at this point in the history
  • Loading branch information
czy88840616 committed Apr 21, 2022
1 parent 3af4f97 commit c508458
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions packages/decorator/src/decorator/framework/index.ts
Expand Up @@ -20,9 +20,11 @@ export function Config(identifier?: string): PropertyDecorator {
});
}

export function App(type?: FrameworkType): PropertyDecorator {
export function App(
typeOrNamespace?: FrameworkType | string
): PropertyDecorator {
return createCustomPropertyDecorator(APPLICATION_KEY, {
type,
type: typeOrNamespace,
});
}

Expand Down

0 comments on commit c508458

Please sign in to comment.