From 30e5e37229574ce20cbe9cd2aeb2fdac7e6a1b1f Mon Sep 17 00:00:00 2001 From: Sungyu Kang Date: Thu, 11 Jul 2024 01:33:43 +0900 Subject: [PATCH] chore: remove deprecated linkNativeMethod --- packages/web/src/index.ts | 1 - packages/web/src/linkNativeMethod.ts | 25 ------------------------- 2 files changed, 26 deletions(-) delete mode 100644 packages/web/src/linkNativeMethod.ts diff --git a/packages/web/src/index.ts b/packages/web/src/index.ts index 27dfda5a..98c2b192 100644 --- a/packages/web/src/index.ts +++ b/packages/web/src/index.ts @@ -1,6 +1,5 @@ export * from "./error"; export * from "./linkBridge"; -export * from "./linkNativeMethod"; export * from "./registerWebMethod"; export type * from "./types"; export * from "@webview-bridge/types"; diff --git a/packages/web/src/linkNativeMethod.ts b/packages/web/src/linkNativeMethod.ts deleted file mode 100644 index 6d618d19..00000000 --- a/packages/web/src/linkNativeMethod.ts +++ /dev/null @@ -1,25 +0,0 @@ -import type { - Bridge, - BridgeStore, - ExcludePrimitive, - ExtractStore, - ParserSchema, -} from "@webview-bridge/types"; - -import { linkBridge, LinkBridgeOptions } from "./linkBridge"; -import { LinkBridge } from "./types"; - -/** - * @deprecated Use `linkBridge` instead. It's just renamed to `linkBridge`. - */ -export const linkNativeMethod = < - T extends BridgeStore, - V extends ParserSchema, ->( - options: LinkBridgeOptions = { - timeout: 2000, - throwOnError: false, - }, -): LinkBridge>, Omit, V> => { - return linkBridge(options); -};