@llml-browser/types
Version:
TypeScript types and schemas for the @llml-browser API
1 lines • 3.94 kB
Source Map (JSON)
{"version":3,"sources":["../src/index.ts"],"sourcesContent":["/**\n * @llml-browser/types\n *\n * This is the root entry point for the types package.\n * For more specific types, consider importing directly from subpaths:\n *\n * @example\n * // Instead of:\n * import { LinkOptions } from '@llml-browser/types';\n *\n * // Prefer:\n * import { LinkOptions } from '@llml-browser/types/routers/link';\n *\n * // Or for service-specific types:\n * import { ScrapedData } from '@llml-browser/types/services/cheerio';\n * import { HTMLCleaningOptions } from '@llml-browser/types/services/html-cleaning';\n * import { LinkExtractionOptions } from '@llml-browser/types/services/link';\n * import { PageMetadata } from '@llml-browser/types/services/metadata';\n */\n\n// Export a services object for discoverability\nimport * as CheerioTypes from './services/cheerio/types';\nimport * as HTMLCleaningTypes from './services/html-cleaning/types';\nimport * as LinkServiceTypes from './services/link/types';\nimport * as MetadataTypes from './services/metadata/types';\n\nimport * as BrowseRouterTypes from './routers/browse/types';\n// Re-export router types for better discoverability\nimport * as LinksRouterTypes from './routers/links/types';\n\nimport type { LinksTree } from './routers/links/types';\nexport type { LinksTree as Tree };\n\n/**\n * Services namespace - provides access to all service types\n */\nexport const Services = {\n Cheerio: CheerioTypes,\n HTMLCleaning: HTMLCleaningTypes,\n Link: LinkServiceTypes,\n Metadata: MetadataTypes,\n};\n\n/**\n * Routers namespace - provides access to all router types\n */\nexport const Routers = {\n Links: LinksRouterTypes,\n Browse: BrowseRouterTypes,\n};\n\n// Type-only exports for better IDE support\nexport * as CheerioTypes from './services/cheerio/types';\nexport * as HTMLCleaningTypes from './services/html-cleaning/types';\nexport * as LinkServiceTypes from './services/link/types';\nexport * as MetadataTypes from './services/metadata/types';\nexport * as LinksRouterTypes from './routers/links/types';\nexport * as BrowseRouterTypes from './routers/browse/types';\n\nexport * from './routers/links/index';\nexport * from './routers/read/index';\nexport * from './routers/browse/index';\nexport * from './services/cheerio/index';\nexport * from './services/html-cleaning/index';\nexport * from './services/link/index';\nexport * from './services/metadata/index';\n\n/**\n * ,\n \"./routers/link\": {\n \"types\": \"./dist/routers/link/index.d.ts\",\n \"import\": \"./dist/routers/link/index.mjs\",\n \"require\": \"./dist/routers/link/index.js\"\n },\n \"./routers/browse\": {\n \"types\": \"./dist/routers/browse/index.d.ts\",\n \"import\": \"./dist/routers/browse/index.mjs\",\n \"require\": \"./dist/routers/browse/index.js\"\n },\n \"./services/cheerio\": {\n \"types\": \"./dist/services/cheerio/index.d.ts\",\n \"import\": \"./dist/services/cheerio/index.mjs\",\n \"require\": \"./dist/services/cheerio/index.js\"\n },\n \"./services/html-cleaning\": {\n \"types\": \"./dist/services/html-cleaning/index.d.ts\",\n \"import\": \"./dist/services/html-cleaning/index.mjs\",\n \"require\": \"./dist/services/html-cleaning/index.js\"\n },\n \"./services/link\": {\n \"types\": \"./dist/services/link/index.d.ts\",\n \"import\": \"./dist/services/link/index.mjs\",\n \"require\": \"./dist/services/link/index.js\"\n },\n \"./services/metadata\": {\n \"types\": \"./dist/services/metadata/index.d.ts\",\n \"import\": \"./dist/services/metadata/index.mjs\",\n \"require\": \"./dist/services/metadata/index.js\"\n }\n * \n * */\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAoCO,IAAM,WAAW;AAAA,EACtB,SAAS;AAAA,EACT,cAAcA;AAAA,EACd,MAAMA;AAAA,EACN,UAAUA;AACZ;AAKO,IAAM,UAAU;AAAA,EACrB,OAAOA;AAAA,EACP,QAAQA;AACV;","names":["types_exports"]}