diff --git a/src/index.ts b/src/index.ts index e3eda24..7281ed1 100644 --- a/src/index.ts +++ b/src/index.ts @@ -9,6 +9,7 @@ export { createNullableResourceSelector, createResourceCollectionSelector, createDataSelector, + type Selector, } from "./selector.ts"; export type { ResourceCollectionDocumentResult, diff --git a/src/selector.ts b/src/selector.ts index c5f679f..a530360 100644 --- a/src/selector.ts +++ b/src/selector.ts @@ -149,7 +149,7 @@ const flattenResource = ( return flat as ResourceResult; }; -type Selector = (raw: unknown) => T; +export type Selector = (raw: unknown) => T; const createFlattenedDocumentFromData = ( result: z.output>,