Skip to content

Conversation

@tharropoulos
Copy link
Collaborator

Change Summary

Addresses #269.

This pull request includes several changes to the Typesense module to improve type definitions and imports. The most important changes include modifying type imports in Collection.ts and exporting the BaseCollectionCreateSchema interface in Collections.ts.

Improvements to type definitions and imports:

  • src/Typesense/Collection.ts: Modified imports to separately import BaseCollectionCreateSchema and CollectionCreateSchema from Collections.ts.
  • src/Typesense/Collection.ts: Updated CollectionFieldSchema to use BaseCollectionCreateSchema instead of CollectionCreateSchema for token_separators and symbols_to_index properties.
  • src/Typesense/Collections.ts: Exported the BaseCollectionCreateSchema interface to allow its use in other files.

PR Checklist

- Change `CollectionFieldSchema` to extend properties from
  `BaseCollectionCreateSchema` instead of `CollectionCreateSchema`
- Export `BaseCollectionCreateSchema` interface to make it accessible
- Fix imports in Collection.ts to use the correct types
@jasonbosco jasonbosco merged commit e5fb6f0 into typesense:master Feb 25, 2025
1 check passed
@jasonbosco
Copy link
Member

Published in v2.0.3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants