Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(types): correct type reference in CollectionFieldSchema #270

Merged
merged 1 commit into from
Feb 25, 2025

Conversation

tharropoulos
Copy link
Contributor

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