Skip to content

Commit

Permalink
Improve test for an import type
Browse files Browse the repository at this point in the history
  • Loading branch information
sgrishchenko committed Jan 7, 2024
1 parent b39d53b commit d41f245
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 2 deletions.
15 changes: 15 additions & 0 deletions test/functional/base/generated/importType/router.kt
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
// Generated by Karakum - do not modify it manually!

@file:JsModule("sandbox-base/importType/router")
@file:Suppress(
"NON_EXTERNAL_DECLARATION_IN_INAPPROPRIATE_FILE",
)

package sandbox.base.importType




external interface RouterState {

}
2 changes: 1 addition & 1 deletion test/functional/base/generated/importType/simple.kt
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@ package sandbox.base.importType



external val DataRouterStateContext: React.Context</* import("@remix-run/router") */ RouterState>
external val DataRouterStateContext: React.Context<(/* import("./router") */ RouterState)?>
1 change: 1 addition & 0 deletions test/functional/base/lib/importType/router.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export type RouterState = {}
2 changes: 1 addition & 1 deletion test/functional/base/lib/importType/simple.d.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export declare const DataRouterStateContext: React.Context<import("@remix-run/router").RouterState | null>;
export declare const DataRouterStateContext: React.Context<import("./router").RouterState | null>;

0 comments on commit d41f245

Please sign in to comment.