1
0
mirror of https://github.com/nextapps-de/flexsearch.git synced 2025-09-30 23:26:42 +02:00
Commit Graph

44 Commits

Author SHA1 Message Date
Thomas Wilkerling
2431b51a4f update index.d.ts 2025-05-08 22:08:07 +02:00
Thomas Wilkerling
650cf81d9e add exports to index.d.ts 2025-05-07 18:10:10 +02:00
Thomas Wilkerling
1a0bd73002 add further generics to index.d.ts 2025-05-07 17:15:40 +02:00
Thomas Wilkerling
2d53d5e556 minor optimization of index.d.ts 2025-05-07 12:00:37 +02:00
Thomas Wilkerling
5ebe58065c readme update document options 2025-05-07 11:11:32 +02:00
Thomas Wilkerling
3bd342e74c remove unused exports from index.d.ts 2025-05-07 08:46:46 +02:00
Thomas Wilkerling
e93905fc36 minor improve readability of index.d.ts 2025-05-06 13:49:05 +02:00
Thomas Wilkerling
c7cbaca5a0 add globals within index.d.ts 2025-05-06 11:49:45 +02:00
Thomas Wilkerling
c25b91d5a5 Merge pull request #497 from flycran/master
Better typescript type inference
2025-05-06 11:45:06 +02:00
Thomas Wilkerling
4ab707ef56 proper encoder type in index.d.ts 2025-05-06 11:42:58 +02:00
flycran
6a4b862c31 Merge branch 'master' into master 2025-05-06 17:34:01 +08:00
flycran
f32268c902 - 更新index.d.ts
- 修复`search`的返回值类型,根据worker、db推断返回类型

- 更新types.ts
  测试ts静态类型
2025-05-06 17:26:34 +08:00
Thomas Wilkerling
5d7de9dd11 add missing type for "encoder" option to index.d.ts 2025-05-06 11:11:18 +02:00
Thomas Wilkerling
47a6f62cee simplify module declaration within index.d.ts 2025-05-06 11:08:18 +02:00
Thomas Wilkerling
94fe3aa5a0 add language presets and persistent adapter types to index.d.ts 2025-05-06 10:22:50 +02:00
flycran
a685bc1f8f - 更新index.d.ts
- 为Index的search等方法自动推断返回类型
2025-05-05 11:06:19 +08:00
flycran
babbe1d73c Revert "- 更新index.d.ts"
This reverts commit 15a9ff334a.
2025-05-05 10:55:04 +08:00
flycran
15a9ff334a - 更新index.d.ts
- 为Resolver添加泛型支持

- 更新types.ts
  测试ts静态类型
2025-05-05 10:47:57 +08:00
flycran
21ebe443dc - 更新index.d.ts
- 重构FieldName为泛型,支持自动推断字段定义

- 更新types.ts
  测试ts静态类型
2025-05-05 10:39:38 +08:00
33431
94d46eb2a9 - 更新index.d.ts
- 导出了部分类型,这是为了支持类型测试
  - 为`Document`添加泛型
  - 在`Document`实例化时传入doc的类型,它将为所有返回doc的方法提供正确的类型
  - 自动推断`search`,`searchCache`,`searchAsync`的返回类型,现在他们不再返回联合类型
  - 为上述方法的`limit`参数单独使用函数重载,增加可读性

- 更新types.ts
  测试ts静态类型
2025-05-05 04:03:42 +08:00
Thomas Wilkerling
f774be9646 extended result highlighting 2025-05-02 13:30:09 +02:00
Thomas Wilkerling
6aadad9c3d re-add CJK encoder supporting graphemes 2025-04-12 11:05:00 +02:00
Thomas Wilkerling
ae97d7412a readme worker index options 2025-04-06 11:24:52 +02:00
Thomas Wilkerling
9eca5637d5 readme index options 2025-04-06 10:32:28 +02:00
Thomas Wilkerling
112a07725f improve result highlighting #480 2025-04-01 10:29:03 +02:00
Thomas Wilkerling
607300efe1 index.d.ts describe default export 2025-04-01 07:37:36 +02:00
Thomas Wilkerling
2b1771fd6d update readme part 1 of 2 2025-03-27 21:04:06 +01:00
Thomas Wilkerling
5abd01a3c5 universal charset presets, fix #483 2025-03-27 18:16:37 +01:00
Thomas Wilkerling
e878ce5f99 more tests, more fixes 2025-03-24 18:33:20 +01:00
Thomas Wilkerling
63531ef4f1 (re)adding tests, migration 2025-03-22 15:42:12 +01:00
Thomas Wilkerling
84c7a08e9e proper light/compact bundle 2025-03-20 11:53:22 +01:00
Thomas Wilkerling
b0311432fd async polling handler 2025-03-20 07:45:45 +01:00
Thomas Wilkerling
d9f235ce3b document resolver, reduce code duplication, refactoring 2025-03-19 14:33:22 +01:00
Thomas Wilkerling
1820491b05 push v0.8 to master
# Conflicts:
#	README.md
2025-03-17 01:14:11 +01:00
Thomas Wilkerling
44153a67ad type definitions v0.8 2025-03-17 01:13:36 +01:00
Thomas Wilkerling
b8279ebddc add index.d.ts from @types/flexsearch 2024-01-07 23:46:06 +01:00
Jonas Schade
e193016c3d chore: remove incorrect types 2023-09-28 13:18:14 +02:00
Andrew Lee
457eea1e7e fix: typing of export() function 2021-10-18 17:48:53 +02:00
Andrew Lee
c2df6c9671 feat: make export method return a Promise instead of true 2021-10-18 17:48:15 +02:00
hasparus
5dfb3de415 Add return type annotations in index.d.ts 2020-09-14 22:36:54 +02:00
gritschf
9de476bb8f add doc to CreateOptions and change type from o to string in add(...) 2019-08-14 15:59:59 +02:00
gritschf
e28ce650ca fix generics on SearchResults, add info method and add without 'id' 2019-07-30 11:04:41 +02:00
Rik
be8a9c496d fix: Include missing CreateOptions 2019-06-07 13:45:07 +01:00
Rik
471878d7d7 Beginning of Typescript Definition
minimal typescript declaration
2019-06-07 13:38:57 +01:00