Skip to content

Commit 91f0ec9

Browse files
committed
use type alias
1 parent 66812a1 commit 91f0ec9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/component/src/provider.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,7 @@ export class Provider<T extends Name> {
265265
*
266266
* @returns a function to unregister the callback
267267
*/
268-
onInit(callback: (instance: NameServiceMapping[T]) => void): () => void {
268+
onInit(callback: OnInitCallBack<T>): () => void {
269269
this.onInitCallbacks.add(callback);
270270

271271
return () => {

0 commit comments

Comments
 (0)