From 5b233f06d47af1c7a5d9c35b69bb5c2c4e715812 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nguy=E1=BB=85n=20H=E1=BB=93ng=20Qu=C3=A2n?= Date: Thu, 16 Feb 2023 17:04:34 +0700 Subject: [PATCH 1/2] Fix typing error which breaks app.use --- src/types/typesCompat.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/types/typesCompat.ts b/src/types/typesCompat.ts index 741d10e9..dfc5f969 100644 --- a/src/types/typesCompat.ts +++ b/src/types/typesCompat.ts @@ -23,4 +23,4 @@ export type Vue2 = typeof Vue2Type export type Vue3 = Vue3Type export type Vue = Vue3 | Vue2 -export type InstallFunction = (vue: unknown, options: TOptions) => void +export type InstallFunction = (vue: unknown, options?: TOptions) => void From 74c27ca2ef559efcbcbbd6dc85081e1409775fcd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nguy=E1=BB=85n=20H=E1=BB=93ng=20Qu=C3=A2n?= Date: Thu, 16 Feb 2023 17:13:24 +0700 Subject: [PATCH 2/2] Remove options param from install function --- src/index.ts | 2 +- src/types/typesCompat.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/index.ts b/src/index.ts index f9f5bdf9..df0fb29f 100644 --- a/src/index.ts +++ b/src/index.ts @@ -23,7 +23,7 @@ export interface FluentVue { formatWithAttrs: (key: string, value?: Record) => TranslationWithAttrs - install: InstallFunction + install: InstallFunction } /** diff --git a/src/types/typesCompat.ts b/src/types/typesCompat.ts index dfc5f969..43694fc5 100644 --- a/src/types/typesCompat.ts +++ b/src/types/typesCompat.ts @@ -23,4 +23,4 @@ export type Vue2 = typeof Vue2Type export type Vue3 = Vue3Type export type Vue = Vue3 | Vue2 -export type InstallFunction = (vue: unknown, options?: TOptions) => void +export type InstallFunction = (vue: unknown) => void