-
-
Notifications
You must be signed in to change notification settings - Fork 2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #5928 from refinedev/fix/type-errors-on-older-ts-v…
…ersions fix: type errors on typescript <5
- Loading branch information
Showing
53 changed files
with
267 additions
and
206 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
--- | ||
"@refinedev/airtable": patch | ||
"@refinedev/antd": patch | ||
"@refinedev/appwrite": patch | ||
"@refinedev/chakra-ui": patch | ||
"@refinedev/cli": patch | ||
"@refinedev/core": patch | ||
"@refinedev/devtools": patch | ||
"@refinedev/devtools-internal": patch | ||
"@refinedev/devtools-shared": patch | ||
"@refinedev/devtools-ui": patch | ||
"@refinedev/graphql": patch | ||
"@refinedev/hasura": patch | ||
"@refinedev/inferencer": patch | ||
"@refinedev/kbar": patch | ||
"@refinedev/mantine": patch | ||
"@refinedev/medusa": patch | ||
"@refinedev/mui": patch | ||
"@refinedev/nestjs-query": patch | ||
"@refinedev/nestjsx-crud": patch | ||
"@refinedev/nextjs-router": patch | ||
"@refinedev/react-hook-form": patch | ||
"@refinedev/react-router-v6": patch | ||
"@refinedev/react-table": patch | ||
"@refinedev/remix-router": patch | ||
"@refinedev/simple-rest": patch | ||
"@refinedev/strapi": patch | ||
"@refinedev/strapi-v4": patch | ||
"@refinedev/supabase": patch | ||
"@refinedev/ui-tests": patch | ||
"@refinedev/ui-types": patch | ||
--- | ||
|
||
fix: type errors on typescript <5 | ||
|
||
Due to the changes in #5881, typescript users below version 5 are facing type errors. This PR fixes the type errors by updating the file extensions required by the `d.mts` declaration files to provide a compatible declarations for both typescript 4 and 5 users. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
import { dataProvider } from "./dataProvider.ts"; | ||
import { dataProvider } from "./dataProvider.js"; | ||
|
||
export * from "./utils/index.ts"; | ||
export * from "./dataProvider.ts"; | ||
export * from "./utils/index.js"; | ||
export * from "./dataProvider.js"; | ||
export default dataProvider; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,14 @@ | ||
export * from "./hooks/index.ts"; | ||
export * from "./providers/index.ts"; | ||
export * from "./components/index.ts"; | ||
export * from "./contexts/index.ts"; | ||
export * from "./hooks/index.js"; | ||
export * from "./providers/index.js"; | ||
export * from "./components/index.js"; | ||
export * from "./contexts/index.js"; | ||
|
||
export { | ||
getDefaultSortOrder, | ||
getDefaultFilter, | ||
mapAntdSorterToCrudSorting, | ||
mapAntdFilterToCrudFilter, | ||
} from "./definitions/table/index.ts"; | ||
export { getValueFromEvent } from "./definitions/upload/index.ts"; | ||
} from "./definitions/table/index.js"; | ||
export { getValueFromEvent } from "./definitions/upload/index.js"; | ||
|
||
export * from "./definitions/themes/index.ts"; | ||
export * from "./definitions/themes/index.js"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
export * from "./components/index.ts"; | ||
export * from "./hooks/index.ts"; | ||
export * from "./theme/index.ts"; | ||
export * from "./providers/index.ts"; | ||
export * from "./contexts/index.ts"; | ||
export * from "./components/index.js"; | ||
export * from "./hooks/index.js"; | ||
export * from "./theme/index.js"; | ||
export * from "./providers/index.js"; | ||
export * from "./contexts/index.js"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
export * from "./definitions/index.ts"; | ||
export { getImports, getNameChangeInImport } from "./utils/swizzle/import.ts"; | ||
export { appendAfterImports } from "./utils/swizzle/appendAfterImports.ts"; | ||
export { getFileContent } from "./utils/swizzle/getFileContent.ts"; | ||
export type { ImportMatch, NameChangeMatch } from "./utils/swizzle/import.ts"; | ||
export * from "./definitions/index.js"; | ||
export { getImports, getNameChangeInImport } from "./utils/swizzle/import.js"; | ||
export { appendAfterImports } from "./utils/swizzle/appendAfterImports.js"; | ||
export { getFileContent } from "./utils/swizzle/getFileContent.js"; | ||
export type { ImportMatch, NameChangeMatch } from "./utils/swizzle/import.js"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
export { getTrace } from "./get-trace.ts"; | ||
export { getXRay } from "./get-xray.ts"; | ||
export { useQuerySubscription } from "./use-query-subscription.tsx"; | ||
export { getTrace } from "./get-trace.js"; | ||
export { getXRay } from "./get-xray.js"; | ||
export { useQuerySubscription } from "./use-query-subscription.js"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,14 @@ | ||
export { DevtoolsEvent, DevtoolsEventPayloads } from "./event-types.ts"; | ||
export { TraceType } from "./trace.ts"; | ||
export { Feed, FeedSection } from "./feed.ts"; | ||
export { DevtoolsEvent, DevtoolsEventPayloads } from "./event-types.js"; | ||
export { TraceType } from "./trace.js"; | ||
export { Feed, FeedSection } from "./feed.js"; | ||
export { | ||
PackageType, | ||
PackageLatestVersionType, | ||
AvailablePackageType, | ||
} from "./package.ts"; | ||
export { RefineHook, Scopes, hooksByScope, scopes } from "./scopes.ts"; | ||
} from "./package.js"; | ||
export { RefineHook, Scopes, hooksByScope, scopes } from "./scopes.js"; | ||
|
||
export { DevToolsContextProvider, DevToolsContext } from "./context.tsx"; | ||
export { DevToolsContextProvider, DevToolsContext } from "./context.js"; | ||
|
||
export { send } from "./send.ts"; | ||
export { receive } from "./receive.ts"; | ||
export { send } from "./send.js"; | ||
export { receive } from "./receive.js"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
export { DevtoolsPanel } from "./panel.tsx"; | ||
export { DevtoolsProvider } from "./provider.tsx"; | ||
export { DevtoolsPanel } from "./panel.js"; | ||
export { DevtoolsProvider } from "./provider.js"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.