Skip to content

Commit 05aa2af

Browse files
Merge pull request #362 from splitio/refactor_type_definitions
Refactor TypeScript declarations
2 parents c1f766f + 5e115c2 commit 05aa2af

File tree

146 files changed

+2692
-1939
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

146 files changed

+2692
-1939
lines changed

.eslintrc

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
"parser": "@typescript-eslint/parser",
66
"plugins": [
77
"@typescript-eslint",
8+
"eslint-plugin-tsdoc",
89
"import"
910
],
1011

@@ -90,6 +91,19 @@
9091
"sourceType": "module"
9192
}
9293
},
94+
{
95+
"files": ["types/**"],
96+
"rules": {
97+
"no-use-before-define": "off"
98+
}
99+
},
100+
{
101+
// Enable TSDoc rules for TypeScript files, allowing the use of JSDoc in JS files.
102+
"files": ["**/*.ts"],
103+
"rules": {
104+
"tsdoc/syntax": "warn"
105+
}
106+
},
93107
// @TODO remove when moving InLocalStorage to js-browser
94108
{
95109
"files": ["src/storages/inLocalStorage/**/*.ts"],

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
## transpiled code
1010
/esm
1111
/cjs
12-
/types
1312

1413
## coverage info
1514
/coverage

CHANGES.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
2.0.0 (October XX, 2024)
22
- Added support for targeting rules based on large segments.
33
- Added `factory.destroy()` method, which invokes the `destroy` method on all SDK clients created by the factory.
4+
- Added `SplitIO` namespace with the public TypeScript definitions to be reused by the SDKs, rather than having each SDK define its own types.
45
- Updated the handling of timers and async operations inside an `init` factory method to enable lazy initialization of the SDK in standalone mode. This update is intended for the React SDK.
56
- Bugfixing - Fixed an issue with the server-side polling manager that caused dangling timers when the SDK was destroyed before it was ready.
67
- BREAKING CHANGES:

0 commit comments

Comments
 (0)