diff --git a/dist/index.test-d.ts b/dist/index.test-d.ts index 20bc143..459deb8 100644 --- a/dist/index.test-d.ts +++ b/dist/index.test-d.ts @@ -43,4 +43,19 @@ expectError(typedPath().a.W.c.$rawPath); // Types for additional handlers expectType(typedPath(testAdditionalHandlers).a.b.c.$length); -// Types for additional handlers \ No newline at end of file +// Types for additional handlers + +// Types for root handlers +function getTestAdditionalHandlers() { + return { + $rootType: () => ({} as RootType), + } +}; + +expectType( + typedPath< + TestType, + ReturnType> + >(getTestAdditionalHandlers()).a.b.c.$rootType +); +// Types for root handlers