Skip to content

Commit 1d83753

Browse files
fix: wrong import path for nutrient viewer type in vue
1 parent aae015f commit 1d83753

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

frameworks/react/TS/src/nutrient/custom-overlays/implementation.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ export async function loadCustomOverlaysViewer(
3838
* @param nutrientViewer - The NutrientViewer object
3939
* @param defaultConfiguration - Base configuration object
4040
*/
41-
function load(
41+
async function load(
4242
nutrientViewer: NonNullable<typeof window.NutrientViewer>,
4343
defaultConfiguration: Configuration,
4444
) {

frameworks/vue/TS/env.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/// <reference types="vite/client" />
22

3-
import type NutrientViewer from "frameworks/next/ts/node_modules/@nutrient-sdk/viewer/dist";
3+
import type NutrientViewer from "@nutrient-sdk/viewer";
44

55
declare global {
66
interface Window {

frameworks/vue/TS/src/nutrient/custom-overlays/implementation.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ export async function loadCustomOverlaysViewer(
3838
* @param nutrientViewer - The NutrientViewer object
3939
* @param defaultConfiguration - Base configuration object
4040
*/
41-
function load(
41+
async function load(
4242
nutrientViewer: NonNullable<typeof window.NutrientViewer>,
4343
defaultConfiguration: Configuration,
4444
) {

0 commit comments

Comments
 (0)