Skip to content

Commit

Permalink
Fixed imports
Browse files Browse the repository at this point in the history
  • Loading branch information
scambier committed Jan 22, 2023
1 parent 1e181c1 commit e5f443f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
3 changes: 2 additions & 1 deletion lib/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { ocrLangs } from './ocr-langs'
import type { TFile } from 'obsidian'
import type { OcrOptions } from './types'
import { processQueue } from './globals'
import { getCachePath } from './cache'
import { getCacheBasePath, getCachePath } from './cache'

/**
* Returns a promise that resolves to the text extracted from the file.
Expand Down Expand Up @@ -81,4 +81,5 @@ export {
clearProcessQueue,
isInCache,
removeFromCache,
getCacheBasePath,
}
4 changes: 1 addition & 3 deletions plugin/src/settings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,7 @@ import TextExtractorPlugin from './main'
import { writable } from 'svelte/store'
import { Notice, PluginSettingTab, Setting } from 'obsidian'
import LangSelector from './components/LangSelector.svelte'
import { getOcrLangs } from 'obsidian-text-extract'
// Non-public API
import { getCacheBasePath } from 'obsidian-text-extract/src/cache'
import { getOcrLangs, getCacheBasePath } from 'obsidian-text-extract'

interface TextExtractorSettings {
ocrLanguages: ReturnType<typeof getOcrLangs>[number][]
Expand Down

0 comments on commit e5f443f

Please sign in to comment.