Skip to content

Commit 0d672fd

Browse files
authored
added oramaInternals (#200)
1 parent ac4e9f3 commit 0d672fd

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

index.d.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import type { FastifyPluginCallback } from 'fastify'
2-
import type { TypedDocument, insert, Orama, Results, SearchParams, create, AnyOrama, PartialSchemaDeep, Schema } from '@orama/orama'
2+
import type { TypedDocument, insert, Orama, Results, SearchParams, create, AnyOrama, PartialSchemaDeep, Schema, internals } from '@orama/orama'
33

44
interface FastifyOramaPersistence<T = any, O = any> {
55
restore: () => Promise<Orama<T> | null>
@@ -31,6 +31,8 @@ type FastifyOramaPluginOptions = {
3131

3232
declare const fastifyOrama: FastifyPluginCallback<FastifyOramaPluginOptions>
3333

34+
declare const oramaInternals: typeof internals
35+
3436
interface OramaApi<T> {
3537
insert: (document: PartialSchemaDeep<TypedDocument<Orama<T>>>) => Promise<string>,
3638
search: (params: SearchParams<Orama<Schema<T>>, T>) => Promise<Results<Schema<T>>>,
@@ -49,5 +51,6 @@ export { fastifyOrama as default }
4951
export {
5052
fastifyOrama,
5153
PersistenceInMemory,
52-
PersistenceInFile
54+
PersistenceInFile,
55+
oramaInternals
5356
}

0 commit comments

Comments
 (0)