From 64d896cfc8d5452c8adb9ced12dc47b7f8522e21 Mon Sep 17 00:00:00 2001 From: QuinnFTW Date: Sat, 10 Jan 2026 04:19:29 -0800 Subject: [PATCH] =?UTF-8?q?fix(content-flagging):=20=E2=9C=A8=20update=20T?= =?UTF-8?q?ypeScript=20definitions=20and=20fix=20TypeScript=20version=20in?= =?UTF-8?q?=20tsconfig.json?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- content-flagging/src/index.ts | 22 +++++++++++----------- content-flagging/tsconfig.json | 18 ++++++------------ 2 files changed, 17 insertions(+), 23 deletions(-) diff --git a/content-flagging/src/index.ts b/content-flagging/src/index.ts index 23d0477..93f1a78 100644 --- a/content-flagging/src/index.ts +++ b/content-flagging/src/index.ts @@ -11,32 +11,32 @@ export type { ContentFlag, ContentFlagResult, ContentFlaggingConfig, -} from './types' +} from './types.js' -export { DEFAULT_FLAGGING_CONFIG, SEVERITY_SCORES } from './types' +export { DEFAULT_FLAGGING_CONFIG, SEVERITY_SCORES } from './types.js' // Service export { ContentFlaggingService, getContentFlaggingService, flagContent, -} from './ContentFlaggingService' +} from './ContentFlaggingService.js' // React Hooks -export type { UseContentFlaggingOptions, UseContentFlaggingReturn } from './useContentFlagging' -export { useContentFlagging, useContentScore } from './useContentFlagging' +export type { UseContentFlaggingOptions, UseContentFlaggingReturn } from './useContentFlagging.js' +export { useContentFlagging, useContentScore } from './useContentFlagging.js' export type { AutosaveStatus, AutosaveToastConfig, UseAutosaveWithFlaggingOptions, UseAutosaveWithFlaggingReturn, -} from './useAutosaveWithFlagging' -export { useAutosaveWithFlagging } from './useAutosaveWithFlagging' +} from './useAutosaveWithFlagging.js' +export { useAutosaveWithFlagging } from './useAutosaveWithFlagging.js' // UI Components -export type { FlagDetailsProps, FlagScoreIndicatorProps } from './FlagScoreIndicator' -export { FlagDetails, FlagScoreIndicator } from './FlagScoreIndicator' +export type { FlagDetailsProps, FlagScoreIndicatorProps } from './FlagScoreIndicator.js' +export { FlagDetails, FlagScoreIndicator } from './FlagScoreIndicator.js' -export type { ContentFlaggedFieldProps } from './ContentFlaggedField' -export { ContentFlaggedField } from './ContentFlaggedField' +export type { ContentFlaggedFieldProps } from './ContentFlaggedField.js' +export { ContentFlaggedField } from './ContentFlaggedField.js' diff --git a/content-flagging/tsconfig.json b/content-flagging/tsconfig.json index a6b3762..7d95f43 100644 --- a/content-flagging/tsconfig.json +++ b/content-flagging/tsconfig.json @@ -1,12 +1,11 @@ { "compilerOptions": { - "target": "ES2020", - "lib": ["ES2020", "DOM", "DOM.Iterable"], - "module": "ESNext", - "moduleResolution": "bundler", + "target": "ES2022", + "lib": ["ES2022", "DOM", "DOM.Iterable"], + "module": "NodeNext", + "moduleResolution": "NodeNext", "jsx": "react-jsx", "strict": true, - "noEmit": true, "esModuleInterop": true, "skipLibCheck": true, "forceConsistentCasingInFileNames": true, @@ -17,11 +16,6 @@ "declaration": true, "declarationMap": true }, - "include": [ - "src/**/*" - ], - "exclude": [ - "node_modules", - "dist" - ] + "include": ["src/**/*"], + "exclude": ["node_modules", "dist"] }